xk6-mqtt
    Preparing search index...

    Interface Will

    Defines the "Last Will and Testament" message for MQTT clients. This message is sent by the broker when the client disconnects unexpectedly.

    interface Will {
        payload: string;
        qos?: QoS;
        retain?: boolean;
        topic: string;
    }
    Index

    Properties

    payload: string

    Payload for the will message.

    qos?: QoS

    QoS level for the will message.

    retain?: boolean

    Whether the will message should be retained.

    topic: string

    Topic for the will message.