If tokio-runtime feature is enabled, implement tokio AsyncRead/Write traits on WebSocket and provide a From impl for the adapter
sdroege opened this issue · 2 comments
sdroege commented
If tokio-runtime feature is enabled, implement tokio AsyncRead/Write traits on WebSocket and provide a From impl for the adapter
najamelan commented
ws_stream_tungstenite provides this if you want to spare the work.
sdroege commented
ws_stream_tungstenite provides this if you want to spare the work.
Not really? That does something completely different :)
But also this issue makes no sense. WebSocket
is a Stream
/Sink
, and for that tokio fortunately does not provide its own traits.