Skip to content

Websocket client #653

Answered by davidpdrsn
L4ngu0r asked this question in Q&A
Dec 24, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Not quite sure what your question is 🤔

axum's use to tungstenite is private API so we won't expose any types from it. If we did that would requires us to ship a breaking release of axum is tungstenite does.

Also there is no method to detect clearly if message is a close event (as in warp: use tungstenite::protocol::Message)

You can detect close messages by pattern matching and checking if it's Message::Close.

Replies: 1 comment 1 reply

Comment options

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

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