Module client

Module client 

Expand description

Client state machine.

Client tracks connection lifecycle, server-negotiated limits, packet ID allocation, and QoS 1/2 flows. It consumes decoded packets and produces ClientEvents and Responses for the caller to send.

Structs§

Client
Sans-io MQTT v5 client state machine.
HandleOutcome
Result of processing an incoming packet.
ServerCapabilities
Server capabilities extracted from CONNACK properties (§3.2.2.3).

Enums§

ClientError
Errors from the client state machine.
ClientEvent
Events produced by the client state machine for the application layer.
ConnectionState
Connection lifecycle phase.
Response
A response packet that the caller must encode and send to the server.
Retransmit
Describes a message that needs retransmission after reconnect.