Created
March 18, 2014 12:20
-
-
Save angelpinheiro/9619015 to your computer and use it in GitHub Desktop.
Test websocket
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
websocket = new WebSocket("ws://tec.citius.usc.es/servando/view/events"); | |
websocket.onerror = function(evt) {console.log("Error", evt);}; | |
websocket.onopen = function(evt) {console.log("Open", evt);}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment