-
|
The documentation says you can send an emit to the current user using client.Emit(), there is an option to send an emit to everyone except the current user using client.To(‘room’).Emit() |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
When a new user connects, add this new user to their specific room that only they can access, and then other users can send messages to that user's room. |
Beta Was this translation helpful? Give feedback.
-
|
actually this problem can be solved by using server.To(socket.Room()).Emit() |
Beta Was this translation helpful? Give feedback.
actually this problem can be solved by using server.To(socket.Room()).Emit()