pub(crate) async fn new(upgraded: hyper::upgrade::Upgraded) -> Self {
        let inner = WebSocketStream::from_raw_socket(upgraded, protocol::Role::Server, None).await;
        WebSocket {
            inner,
            context: Arc::new(RwLock::new(T::default())),
        }
    }
/// Creates new WebSocket from an upgraded connection with default context
Creates new WebSocket from an upgraded connection with default context
Creates new WebSocket from an upgraded connection with default context
pub(crate) async fn new(upgraded: hyper::upgrade::Upgraded) -> Self {
        let inner = WebSocketStream::from_raw_socket(upgraded, protocol::Role::Server, None).await;
        WebSocket {
            inner,
            context: Arc::new(RwLock::new(T::default())),
        }
    }
pub ( crate ) async fn new ( upgraded : hyper :: upgrade :: Upgraded ) -> Self { let inner = WebSocketStream :: from_raw_socket ( upgraded , protocol :: Role :: Server , None ) . await ; WebSocket { inner , context : Arc :: new ( RwLock :: new ( T :: default ( ) ) ) , } }
Creates new WebSocket from an upgraded connection with default context
Creates new WebSocket from an upgraded connection with default context
upgraded
hyper::upgrade::Upgraded
upgraded
hyper::upgrade::Upgraded