ark::comms::WebSocketMessage

Defined in header “ark/comms/websocket_protocol.hh”.


Represents a websocket message. Includes the opcode of the message, along with raw bytes that were contained in it.

Methods

  • std::string_view str()
    Returns the payload as a string.

Variables

  • WebSocketOpcode opcode= WebSocketOpcode::TEXT
    The opcode (indicates text, binary, etc).

  • core::ByteBuffer payload
    The raw bytes.

  • uint64_t wire_size= 0
    The size of the message on the wire (for example, this will be lower if it was compressed).