I'm building an application in real time with socket.io
Each time the user enters the application creates a socket ID. So if I joining the application in several browser tabs generates me a socket id for each tab.
I generate a room for specific users and included my sockets id, but I need to emit broadcast message except to my sockets id.
This code don't work for me because emit broadcast message but sends to my other id sockets
socket.broadcast.to("room").emit('message', "somethings")
Any ideas?