Interface UnsubackPacket

Data model of an MQTT5 UNSUBACK packet.

Hierarchy

Properties

reasonCodes: UnsubackReasonCode[]

A list of reason codes indicating the result of unsubscribing from each individual topic filter entry in the associated UNSUBSCRIBE packet.

See MQTT5 Unsuback Payload

reasonString?: string

Additional diagnostic information about the result of the UNSUBSCRIBE attempt.

See MQTT5 Reason String

userProperties?: UserProperty[]

Set of MQTT5 user properties included with the packet.

See MQTT5 User Property

type?: PacketType

Always set on packets coming from the client to the user. Ignored if set on packets that come from the user to the client.

The primary use is to allow users to distinguish between packets in polymorphic situations (for example, the result of a publish attempt which might be a Puback (QoS 1) or Pubcomp (QoS 2, when we support it).

Generated using TypeDoc