Type alias MqttConnectionResumed

MqttConnectionResumed: ((return_code, session_present) => void)

Type declaration

    • (return_code, session_present): void
    • Listener signature for event emitted from an MqttClientConnection when the connection successfully reestablishes itself after an interruption

      Parameters

      • return_code: number

        MQTT connect return code (should be 0 for a successful reconnection)

      • session_present: boolean

        true if the reconnection went to an existing session, false if this is a clean session

      Returns void

Generated using TypeDoc