pub async fn connect(url: &str) -> OwpWs
Opens a WebSocket to url with Sec-WebSocket-Protocol: owp.
url
Sec-WebSocket-Protocol: owp
Panics if the handshake fails. The adapter refuses a socket that omits this subprotocol.