Skip to content

Commit

Permalink
stop append /# before id when no namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tw0517tw committed Apr 1, 2016
1 parent c7de1a1 commit 6d41287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function Socket(nsp, client){
this.nsp = nsp;
this.server = nsp.server;
this.adapter = this.nsp.adapter;
this.id = nsp.name + '#' + client.id;
this.id = nsp.name !== '/' ? nsp.name + '#' + client.id : client.id;
this.client = client;
this.conn = client.conn;
this.rooms = {};
Expand Down

0 comments on commit 6d41287

Please sign in to comment.