growthmindsit

Message Queues

Review, Research, and Discussion

Rooms and Namespaces

Rooms :is an arbitrary channel that sockets can join and leave. It can be used to broadcast events to a subset of clients:

Please note that rooms are a server-only concept ( the client does not have access to the list of rooms it has joined).

With multiple Socket.IO servers Like global broadcasting, broadcasting to rooms also works with multiple Socket.IO servers.You just need to replace the default Adapter by the Redis Adapter.

Room events : Starting with socket.io@3.1.0, the underlying Adapter will emit the following events:

Github view