async_tungstenite::handshake

Function server_handshake

source
pub(crate) async fn server_handshake<C, F, S>(
    stream: S,
    f: F,
) -> Result<WebSocketStream<S>, HandshakeError<ServerHandshake<AllowStd<S>, C>>>