Websocket client #653
-
Hello, I use [ Client ] --- WS --> [axum ws | bridge | tungstenite ] --- WS ---> [ Server ] I notice axum Message use methods into_tungstenite (and from variant) but it's private. As i want to dispatch websocket message to another server, I didn't find an easy way, to forward axum Message. Also there is no method to detect clearly if message is a close event (as in warp: use Maybe I'm on the wrong way ? :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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.
You can detect close messages by pattern matching and checking if it's |
Beta Was this translation helpful? Give feedback.
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.
You can detect close messages by pattern matching and checking if it's
Message::Close
.