-
I am using socket.io client in javascript for sending messages to my socketiooxide server. I have a few rooms, how do I emit messages from the server to a specific room? I tried |
Beta Was this translation helpful? Give feedback.
Answered by
Totodore
Feb 22, 2024
Replies: 1 comment 1 reply
-
Did you make your socket join the given rooms ? Once it is done you can use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Axnjr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you make your socket join the given rooms ?
https://docs.rs/socketioxide/latest/socketioxide/socket/struct.Socket.html#method.join
Once it is done you can use
to("my_room")
to emit to a given room.