MqttMessage
此内容尚不支持你的语言。
MqttMessage<
T> =object
Defined in: src/io/broker/MqttMessages.ts:103
Inbound MQTT message handed to onMessage / fan-out targets. The
payload is a lazily-decoding MqttPayload wrapper.
Type Parameters
Section titled “Type Parameters”T = unknown
Properties
Section titled “Properties”payload
Section titled “payload”
readonlypayload:MqttPayload<T>
Defined in: src/io/broker/MqttMessages.ts:105
readonlyqos:MqttQos
Defined in: src/io/broker/MqttMessages.ts:106
reasonCode?
Section titled “reasonCode?”
readonlyoptionalreasonCode?:number
Defined in: src/io/broker/MqttMessages.ts:118
MQTT 5.0 PUBACK / PUBREC reason code attached to the message, if
the broker emitted one. undefined for MQTT 3.1.1.
retain
Section titled “retain”
readonlyretain:boolean
Defined in: src/io/broker/MqttMessages.ts:107
readonlytopic:string
Defined in: src/io/broker/MqttMessages.ts:104
userProperties?
Section titled “userProperties?”
readonlyoptionaluserProperties?:MqttUserProperties
Defined in: src/io/broker/MqttMessages.ts:113
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.
