We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7de1a1 commit 6d41287Copy full SHA for 6d41287
lib/socket.js
@@ -59,7 +59,7 @@ function Socket(nsp, client){
59
this.nsp = nsp;
60
this.server = nsp.server;
61
this.adapter = this.nsp.adapter;
62
- this.id = nsp.name + '#' + client.id;
+ this.id = nsp.name !== '/' ? nsp.name + '#' + client.id : client.id;
63
this.client = client;
64
this.conn = client.conn;
65
this.rooms = {};
0 commit comments