oa_gateway_bench::owp_client

Function handshake

Source
pub(crate) async fn handshake(
    ws: &mut WebSocketStream<MaybeTlsStream<TcpStream>>,
    verbose: bool,
) -> Result<(), String>
Expand description

INIT 1.0 / schema 002.5.0, then expects +OK (when verbose) and INFO.

ยงErrors

Returns a message if the server refuses the handshake or times out.