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 3 replies

Comment options

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

@davidpdrsn
Comment options

@rlidwka
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
3 participants