pub async fn connect_async(addr: &str) -> Result
Expand description
Used for connecting as a client to a websocket endpoint.
It basically does the first step of generating the client key
going to the second step, which is parsing the server response,
finally creating the connection, and returning a WSConnection
.