Function accept

Source
pub async fn accept<S>(raw_stream: S) -> Result<WebSocketStream<S>, Error>
where S: AsyncRead + AsyncWrite + Unpin,