Skip to content

Instantly share code, notes, and snippets.

@angelpinheiro
Created March 18, 2014 12:20
Show Gist options
  • Save angelpinheiro/9619015 to your computer and use it in GitHub Desktop.
Save angelpinheiro/9619015 to your computer and use it in GitHub Desktop.
Test websocket
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