@qualithm/mqtt-wire - v0.8.0
    Preparing search index...

    Type Alias OnErrorHook

    OnErrorHook: (error: Error) => void

    Hook called once when a protocol error, a keepalive timeout or a throwing hook ends the session, and for a throw from onDisconnect itself. On a connected MQTT 5.0 session it runs after the wire has handed its reason-coded DISCONNECT to onSend (or waited closeTimeoutMs for it), so the hook may close the transport. onDisconnect runs after it. A throw from this hook is caught and dropped.

    Type Declaration

      • (error: Error): void
      • Parameters

        • error: Error

        Returns void