ark::comms::WebSocketClientStatistics

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


Statistics related to a websocket client. This allows you to poll and understand how a websocket is doing.

Variables

  • bool connected= false
    If we’re connected now or not.

  • uint64_t connection_attempts= 0
    Number of connection attempts (increments each time we try to connect).

  • uint64_t disconnections= 0
    Number of disconnects (increments each time we disconnect).

  • uint64_t messages_received= 0
    Number of messages received.

  • uint64_t bytes_received= 0
    Number of bytes received.

  • uint64_t messages_tranmitted= 0
    Number of messages transmitted.

  • uint64_t bytes_transmitted= 0
    Number of bytes transmitted.

  • uint64_t pings_transmitted= 0
    Ping messages sent.

  • uint64_t pongs_received= 0
    Pong messages received.

  • uint64_t outgoing_messages_dropped= 0
    Number of outgoing messages that were dropped (typically due to connection issues).

  • compression::CompressionType compression_type= compression::CompressionType::None
    Tracks if compression is enabled (and if so, which type).

  • bool throttling_protocol_enabled= false
    Tracks if we are using the throttling protocol.