Skip to content

How to send message to namespace B from a Socket registered in namespace A #268

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

You must be logged in to vote

You could just clone an IO ref in your desired scope and use io.of("/consumer").{get_socket,emit,in,...} from your receiver ?
https://docs.rs/socketioxide/latest/socketioxide/struct.SocketIo.html#method.of

Replies: 2 comments 2 replies

Comment options

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

Comment options

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

Answer selected by JasterV
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