oa_gateway_bench::owp_client

Function connect

Source
pub(crate) async fn connect(
    url: &str,
) -> Result<WebSocketStream<MaybeTlsStream<TcpStream>>, String>
Expand description

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

ยงErrors

Returns a message if the handshake fails.