We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc1a9b commit 7ae896aCopy full SHA for 7ae896a
index.js
@@ -665,8 +665,7 @@ function adapter(uri, opts) {
665
666
var socket = this.nsp.connected[id];
667
if (socket) {
668
- socket.join(room);
669
- if (fn) process.nextTick(fn.bind(null, null));
+ socket.join(room, fn);
670
return;
671
}
672
@@ -708,8 +707,7 @@ function adapter(uri, opts) {
708
707
709
710
711
- socket.leave(room);
712
+ socket.leave(room, fn);
713
714
715
0 commit comments