oa_gateway_testing::owp

Function connect

Source
pub async fn connect(url: &str) -> OwpWs
Expand description

Opens a WebSocket to url with Sec-WebSocket-Protocol: owp.

Panics if the handshake fails. The adapter refuses a socket that omits this subprotocol.