pub fn create_ws(
    req: Request<Body>
) -> Result<(Response<Body>, Option<impl Future<Output = Result<Result<WsStream>, JoinError>>>)>
Expand description

Handle a WS handshake and create a tokio_tungstenite stream Based off of the Mozilla docs on WebSocket servers.