feat(utilities): redis-remote-join
This commit is contained in:
parent
10e187c98a
commit
07ca75bb2d
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);
|
||||
}
|
||||
socket.join(socket.peerId);
|
||||
io.adapter.remoteJoin(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