Host name of the MQTT server to connect to.
Network port of the MQTT server to connect to.
Optional sessionControls how the MQTT5 client should behave with respect to MQTT sessions.
Optional retryControls how the reconnect delay is modified in order to smooth out the distribution of reconnection attempt timepoints for a large set of reconnecting clients.
Optional minMinimum amount of time to wait to reconnect after a disconnect. Exponential backoff is performed with jitter after each connection failure.
Optional maxMaximum amount of time to wait to reconnect after a disconnect. Exponential backoff is performed with jitter after each connection failure.
Optional minAmount of time that must elapse with an established connection before the reconnect delay is reset to the minimum. This helps alleviate bandwidth-waste in fast reconnect cycles due to permission failures on operations.
Optional connectAll configurable options with respect to the CONNECT packet sent by the client, including the will. These connect properties will be used for every connection attempt made by the client.
Optional topicAdditional controls for client behavior with respect to topic alias usage.
If this setting is left undefined, then topic aliasing behavior will be disabled.
Generated using TypeDoc
Base configuration options shared by all MQTT5 clients.
This interface contains the common configuration properties used by both browser and native MQTT5 client implementations. Platform-specific implementations extend this interface with additional properties.