feat(utilities): fixed redis-remote-join
This commit is contained in:
parent
af2feb9476
commit
108452d05c
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ module.exports = {
|
|||
debug && console.log(`notifying new agent about no SESSIONS`);
|
||||
io.to(socket.id).emit(NO_SESSIONS);
|
||||
}
|
||||
io.adapter.remoteJoin(socket.peerId);
|
||||
await io.of('/').adapter.remoteJoin(socket.id, socket.peerId);
|
||||
let rooms = await io.of('/').adapter.allRooms();
|
||||
if (rooms.has(socket.peerId)) {
|
||||
let connectedSockets = await io.in(socket.peerId).fetchSockets();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue