How can I broadcast message to all of connected websocket clients #1335
-
I want to send msg to all of clients when I received data from message queue like rabbitmq or kafka, but I don't know how to implement it. |
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Aug 28, 2022
Replies: 1 comment 3 replies
-
Have a look at the chat example https://github.com/tokio-rs/axum/blob/main/examples/chat/src/main.rs |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
NKDark
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have a look at the chat example https://github.com/tokio-rs/axum/blob/main/examples/chat/src/main.rs