Skip to content

Instantly share code, notes, and snippets.

@bradurani
Last active July 27, 2017 16:29
Show Gist options
  • Save bradurani/b93088d98deb1ae9354954026c37c7b1 to your computer and use it in GitHub Desktop.
Save bradurani/b93088d98deb1ae9354954026c37c7b1 to your computer and use it in GitHub Desktop.
ws.onopen = function () {
if (ws.protocol == 'appProtocol-v2') {
...
} else {
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment