pub fn accept<S: Read + Write>(
) -> Result<WebSocket<S>, HandshakeError<ServerHandshake<S, NoCallback>>>
Accept the given Stream as a WebSocket.
This function starts a server WebSocket handshake over the given stream.
If you want TLS support, use
openssl::ssl::SslStream for the stream here. Any
Read + Write streams are supported,
including those from
Mio and others.