Skip to main content

handshake

Function handshake 

Source
pub async fn handshake<S>(
    stream: S,
    opts: &ClientOptions<'_>,
) -> Result<ClientConnection<S>, ConnectError>
where S: AsyncRead + AsyncWrite + Unpin,
Expand description

Performs the WebSocket opening handshake over an established stream.