Skip to main content

accept

Function accept 

Source
pub async fn accept<S>(
    stream: S,
    peer: SocketAddr,
) -> Result<Socket<S>, WsError>
where S: AsyncRead + AsyncWrite + Unpin,
Expand description

Perform the server half, refusing a peer that does not offer the sip subprotocol.