Skip to content

Instantly share code, notes, and snippets.

@sghiassy
Created September 25, 2015 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sghiassy/6a2766570f59d4332c22 to your computer and use it in GitHub Desktop.
Save sghiassy/6a2766570f59d4332c22 to your computer and use it in GitHub Desktop.
var ws = new DebuggerWebSocket('ws://' + window.location.host + '/debugger-proxy');
ws.onopen = function() {
if (sessionID) {
setStatus('Debugger session #' + sessionID + ' active.');
ws.send(JSON.stringify({replyID: parseInt(sessionID, 10)}));
} else {
setStatus('Waiting, press <span class="shortcut">⌘R</span> in simulator to reload and connect.');
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment