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();