From b49609288124aa9f63a6c0e567bea5be2e39977c Mon Sep 17 00:00:00 2001 From: Naoyuki Kanezawa Date: Sun, 28 Apr 2013 21:20:41 +0900 Subject: [PATCH] fix packet type --- lib/socket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/socket.js b/lib/socket.js index 7e13a6125..7c283aee6 100644 --- a/lib/socket.js +++ b/lib/socket.js @@ -336,7 +336,7 @@ Socket.prototype.disconnect = function(){ if (!this.connected) return this; debug('performing disconnect (%s)', this.nsp); - this.packet({ type: parser.PACKET_DISCONNECT }); + this.packet({ type: parser.DISCONNECT }); // destroy subscriptions this.destroy();