Function take_upgraded

Source
pub async fn take_upgraded<S>(raw_stream: S) -> WebSocketStream<S>
where S: AsyncRead + AsyncWrite + Unpin,
Expand description

Take an already upgraded websocket connection

Useful for when using [hyper] or [warp] or any other HTTP server