how to retrieve socket ref by sid #214
Answered
by
Totodore
tambietgaumisanhe
asked this question in
Q&A
-
i want to pickup socket_ref by sid to emit event but i don't find any suitable method |
Beta Was this translation helpful? Give feedback.
Answered by
Totodore
Dec 23, 2023
Replies: 1 comment 7 replies
-
You currently can't, your only solution is to make the socket join a room corresponding to its id at connection (it is what is done internally with socket.io). |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Starting from 0.9.1: https://docs.rs/socketioxide/latest/socketioxide/struct.SocketIo.html#method.get_socket