ark::comms::ThrottledWebsocketWriterConfig

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


Configuration for the throttled websocket writer. This helps indicate how the writer should behave.

Variables

  • size_t wire_window_size= 0
    The maximum number of messages on the wire at any point in time, per channel. If set to zero, the system streams as fast as it can (it never waits for a client ack).

  • size_t maximum_queue_depth= 0
    The maximum size of the message queue, per-channel. When filled, messages are dropped oldeset-first. Set to zero to disable the queue.

  • std::chrono::nanoseconds message_transmission_timeout= std::chrono::seconds{5}
    Message timeout (if we haven’t gotten an acknowledgement and are trying to write messages, this will timeout after N seconds).