Created
September 24, 2015 07:54
-
-
Save limarc/7f5fffaf6fc577fc4281 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ws = new WebSocket('ws://echo.websocket.org'); | |
| ws.addEventListener('open', function(e) { | |
| console.log('CONNECTED', e); | |
| }); | |
| ws.addEventListener('message', function(e) { | |
| console.log('RESPONSE', e); | |
| }); | |
| ws.addEventListener('error', function(e) { | |
| console.log('ERROR', e); | |
| }); | |
| // ws.send('Hello'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment