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

    Type Alias MqttWireOptions

    Options for MqttWire (server-side).

    type MqttWireOptions = {
        closeTimeoutMs?: number;
        keepAliveMultiplier?: number;
        maximumPacketSize?: number;
        maxRetries?: number;
        pubackAfterDelivery?: boolean;
        retryInterval?: number;
        topicAliasMaximum?: number;
    }
    Index

    Properties

    closeTimeoutMs?: number

    How long, in milliseconds, a session that disconnect() or an error is closing waits for onSend to take its final DISCONNECT before it ends anyway. A transport that never drains can't hold the session open.

    keepAliveMultiplier?: number

    Keepalive timeout multiplier (default 1.5 per spec)

    maximumPacketSize?: number

    Maximum packet size to accept

    maxRetries?: number

    Maximum retry count before giving up

    pubackAfterDelivery?: boolean

    Send a QoS 1 PUBACK only after onPublish resolves, instead of the server acknowledging data it failed to handle. A hook that throws ends the session with no PUBACK for that message, so the client resends it when it reconnects; return a PublishOutcome with a failure reason code to refuse it and keep the session. Off by default: the PUBACK goes out before delivery.

    retryInterval?: number

    Retry interval for unacknowledged QoS messages (ms)

    topicAliasMaximum?: number

    Topic alias maximum (client → server)