buildPublishProperties
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.
Parameters
Section titled “Parameters”protocolVersion
Section titled “protocolVersion”4 | 5
Returns
Section titled “Returns”{ userProperties?: MqttUserProperties; } | undefined
