Skip to content

Get tokio_tungstenite::WebSocketStream from axum::WebSocket #848

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

You must be logged in to vote

That's intentionally not possible as that would make tungstenite part of axum's public api, which we don't want.

I'd recommend abstracting over the Stream and Sink trait instead if possible.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mdeloof
Comment options

@davidpdrsn
Comment options

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