MqttMessage
Defined in: src/io/broker/MqttActor.ts:29
Inbound MQTT message handed to subscribers.
Properties
Section titled “Properties”payload
Section titled “payload”
readonlypayload:Uint8Array
Defined in: src/io/broker/MqttActor.ts:31
readonlyqos:MqttQos
Defined in: src/io/broker/MqttActor.ts:32
reasonCode?
Section titled “reasonCode?”
readonlyoptionalreasonCode?:number
Defined in: src/io/broker/MqttActor.ts:46
MQTT 5.0 PUBACK / PUBREC reason code attached to the message,
if the broker emitted one. undefined for MQTT 3.1.1 or for
unprompted publishes. See the MQTT 5.0 spec § 2.4 “Reason Code”
for the value space.
retain
Section titled “retain”
readonlyretain:boolean
Defined in: src/io/broker/MqttActor.ts:33
readonlytopic:string
Defined in: src/io/broker/MqttActor.ts:30
userProperties?
Section titled “userProperties?”
readonlyoptionaluserProperties?:MqttUserProperties
Defined in: src/io/broker/MqttActor.ts:39
MQTT 5.0 user properties on the inbound packet, if any. Always
undefined for MQTT 3.1.1 traffic — the protocol doesn’t carry
them. See MqttActorSettings.protocolVersion.