ConnectionLost

class ConnectionLost(reasonCode: ReasonCode, message: String, cause: Throwable? = null) : MqttException

The connection was lost unexpectedly.

Emitted when the transport fails, keepalive times out, or the broker sends a DISCONNECT packet.

Constructors

Link copied to clipboard
constructor(reasonCode: ReasonCode, message: String, cause: Throwable? = null)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?
Link copied to clipboard

The MQTT 5.0 reason code associated with this error.