pub async fn accept_async(stream: SocketFlowStream) -> Result
Expand description
Used for accepting websocket connections as a server.
It basically does the first step of verifying the client key in the request
going to the second step, which is sending the acceptance response,
finally creating the connection, and returning a WSConnection
.