oa_gateway_bench

Module owp_client

Source
Expand description

Non-panicking OWP client for the hot path.

Functionsยง

  • connect ๐Ÿ”’
    Opens a WebSocket to url with Sec-WebSocket-Protocol: owp.
  • expect_ok ๐Ÿ”’
  • handshake ๐Ÿ”’
    INIT 1.0 / schema 002.5.0, then expects +OK (when verbose) and INFO.
  • recv_op ๐Ÿ”’
    Next server opcode, answering WebSocket pings.
  • recv_text ๐Ÿ”’
    Next text frame, answering WebSocket pings.
  • send_text ๐Ÿ”’
    Sends one OWP text frame.
  • subscribe ๐Ÿ”’
    SUB and, when the server is verbose, the following +OK.

Type Aliasesยง

  • OwpWs ๐Ÿ”’
    Client WebSocket after the owp subprotocol handshake.