Help: websocket how to add heartbeat detection? #1127
Answered
by
davidpdrsn
wangziming133
asked this question in
Q&A
-
for example https://github.com/tokio-rs/axum/blob/main/examples/chat/src/main.rs |
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Jun 28, 2022
Replies: 1 comment 1 reply
-
axum's websockets is built on tungstenite which afaik handles heartbeats automatically behind the scenes. If you wanna add something manual on top of that you can send a receive a message on an interval. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wangziming133
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
axum's websockets is built on tungstenite which afaik handles heartbeats automatically behind the scenes. If you wanna add something manual on top of that you can send a receive a message on an interval.