A Will message is published by the server if a client is lost unexpectedly.

The Will message is stored on the server when a client connects. It is published if the client connection is lost without the server receiving a DISCONNECT packet.

[MQTT - 3.1.2 - 8]

Hierarchy

  • MqttWill

Constructors

Properties

Constructors

  • Parameters

    • topic: string

      Topic to publish Will message on.

    • qos: QoS

      QoS used when publishing the Will message.

    • payload: Payload

      Content of Will message.

    • retain: boolean = false

      Whether the Will message is to be retained when it is published.

    Returns MqttWill

Properties

payload: Payload

Content of Will message.

qos: QoS

QoS used when publishing the Will message.

retain: boolean = false

Whether the Will message is to be retained when it is published.

topic: string

Topic to publish Will message on.

Generated using TypeDoc