Created
February 23, 2015 02:42
-
-
Save MSakamaki/6c92c50b2ac7cd285bfb to your computer and use it in GitHub Desktop.
WebSocket Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var wsx = new WebSocket('ws://' + location.host); | |
wsx.onopen = function(e){console.log('onopen',e);}; | |
wsx.onmessage = function(e){console.log('onmessage',e)}; | |
wsx.onclose = function(e){console.log('onclose',e)}; | |
wsx.onerror = function(e){console.log('onerror',e)}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment