Skip to content

Commit

Permalink
fix packet type
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzawa committed Apr 28, 2013
1 parent 8004346 commit b496092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/socket.js
Expand Up @@ -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();
Expand Down

0 comments on commit b496092

Please sign in to comment.