Zum Inhalt springen
Deutsch

buildPublishProperties

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

buildPublishProperties(p, protocolVersion): { userProperties?: MqttUserProperties; } | undefined

Defined in: src/io/broker/MqttActor.ts:533

Build the mqtt-packet properties object for an outbound publish, or undefined if there’s nothing v5-specific to attach. Pure function — testable without a real broker or mqtt.js install.

protocolVersion < 5 always returns undefined: the 3.1.1 wire format has no slot for user properties, so we drop them rather than letting them leak into the publish callsite.

MqttPublish

4 | 5

{ userProperties?: MqttUserProperties; } | undefined