Skip to content

Question: Can Websocket Handlers Receive Ping/Pong/Close Messages? #1340

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

You must be logged in to vote

axum uses tungstenite internally to do all the websocket stuff and tungstenite will automatically respond to pings. See snapview/tokio-tungstenite#88. So you just ignore them.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ssanderson
Comment options

@davidpdrsn
Comment options

@ssanderson
Comment options

@davidpdrsn
Comment options

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