Get tokio_tungstenite::WebSocketStream
from axum::WebSocket
#848
-
Hi I was wondering if there is a way to get a Thanks! :) |
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Mar 10, 2022
Replies: 1 comment 3 replies
-
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 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
davidpdrsn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
andSink
trait instead if possible.