Storing a reference to a websocket client (4.0.0) #2622
Unanswered
uellenberg
asked this question in
Q&A
Replies: 2 comments
-
I've been looking into using the address of the context send on a message to store it ( |
Beta Was this translation helpful? Give feedback.
0 replies
-
The answer I just got here might be helpful: #2652 Essentially, if you are able to make the websockets actors themselves decide what to subscribe to (instead of the other way around), you can use async_streams to push values to websocket actors. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm currently designing a system using websockets and I'd like to be able to send a message to one of the clients connected to my websocket server. I know how to send a response on a request, but I can't figure out how to store the client in a safe way and then send a message to them unprompted. I'm a bit new to Rust's way of memory management, so hopefully I'm not missing anything too obvious. Any help is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions