You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Socket.io has a concept of rooms for socket clients to join.
The Redis Adapter has support for clustered room emitting and room fetching via the allRooms() function.
This function allows any socket.io server to fetch all rooms that are connected to the same redis pub/sub namespace, regardless of which socket.io server the client connected to.
This allows to emit specific events to specific rooms, regardless of where the room was created.
We were trying to change from using the original Redis Adapter to this new stream based adapter due to the support for Connection state recovery. But for now we need to continue to use the original.
The text was updated successfully, but these errors were encountered:
My concern with the allRooms() of the Redis adapter is that it currently returns all rooms, including private ones (the ones named after the socket IDs), so it might return a lot of data.
That being said, I guess we could implement an allRooms() method for all adapters, which would exclude the private rooms and return the count of sockets for each room?
Socket.io has a concept of rooms for socket clients to join.
The Redis Adapter has support for clustered room emitting and room fetching via the
allRooms()
function.This function allows any socket.io server to fetch all rooms that are connected to the same redis pub/sub namespace, regardless of which socket.io server the client connected to.
This allows to emit specific events to specific rooms, regardless of where the room was created.
We were trying to change from using the original Redis Adapter to this new stream based adapter due to the support for
Connection state recovery
. But for now we need to continue to use the original.The text was updated successfully, but these errors were encountered: