Skip to content

How do I emit a message to specific room to my socket.io client in js ? #272

Answered by Totodore
Axnjr asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Axnjr
Comment options

Answer selected by Axnjr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants