Skip to content

Instantly share code, notes, and snippets.

View gmarland's full-sized avatar
💥

Gareth Marland gmarland

💥
  • EBM
  • Hastings, UK
View GitHub Profile
@gmarland
gmarland / gist:5751680
Created June 10, 2013 19:51
Connecting to websocket using engine.io
connectSockets: function() {
var that = this;
if (this._socket != null) {
console.log("Retrying webbsocket connection");
this._socket.removeAllListeners();
this._socket = null;
}