Skip to content

Instantly share code, notes, and snippets.

@shripadk
Created October 27, 2012 23:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shripadk/3966914 to your computer and use it in GitHub Desktop.
Save shripadk/3966914 to your computer and use it in GitHub Desktop.
transport.js changes
Transport.prototype.end = function (reason) {
if (!this.disconnected) {
this.log.info('transport end (' + reason + ')');
var local = this.manager.transports[this.id];
this.close();
this.clearTimeouts();
this.disconnected = true;
if (local) {
this.manager.onClientDisconnect(this.id, reason, true);
} else {
this.store.publish('disconnect:' + this.id, reason);
}
this.store.publish('kick', this.id);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment