-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Im working on the realtime chat module for an app, im using the redis streams adapter, when a socket leaves a room i want to notify all the other sockets about that, and here comes my quesion:
// THIS WORKS
(await io.in(matchRoom).fetchSockets()).forEach((s) => {
if (s.id !== socket.id) {
s.emit("chat:user_left");
}
});
// THIS DOES NOT WORK WHEN THE ADAPTER IS ENABLED
io.in(matchRoom).except(socket.id).emit("chat:user_left");
// THIS DOES NOT WORK WHEN THE ADAPTER IS ENABLED
socket.to(matchRoom).emit("chat:user_left");Is this expected behavior that when using an adapter socket.to() and io.in() just silently fail and no message is sent ? or is this a bug?
Thanks.
NodeJS 22
RedisStreamsAdapter 0.2.3
Socket.IO 4.8.1
Metadata
Metadata
Assignees
Labels
No labels