Skip to content

Help: websocket how to add heartbeat detection? #1127

Answered by davidpdrsn
wangziming133 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by wangziming133
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants