You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
according to the typescript definitions in client-options.d.ts IClientPublishOptions.payloadFormatIndicator must be a number. However when passing a number (0 or 1) publishing fails, because in the "mqtt-packet" package the payloadFormatIndicator is checked for a boolean value (false or true) and not a numeric value.
According to the docs here https://github.com/mqttjs/MQTT.js payloadFormatIndicator should be a boolean. Therefore I guess the typescript defitions should get changed accordingly.
I'm using MQTT.js v4.2.8.
The text was updated successfully, but these errors were encountered:
This is an automated message to let you know that this issue has
gone 365 days without any activity. In order to ensure that we work
on issues that still matter, this issue will be closed in 14 days.
If this issue is still important, you can simply comment with a
"bump" to keep it open.
Hello,
according to the typescript definitions in client-options.d.ts IClientPublishOptions.payloadFormatIndicator must be a number. However when passing a number (0 or 1) publishing fails, because in the "mqtt-packet" package the payloadFormatIndicator is checked for a boolean value (false or true) and not a numeric value.
This is the check that fails for a numeric value:
https://github.com/mqttjs/mqtt-packet/blob/23774e79e0ca83a718b95d254414964e7a421b1f/writeToStream.js#L902
According to the docs here
https://github.com/mqttjs/MQTT.js
payloadFormatIndicator should be a boolean. Therefore I guess the typescript defitions should get changed accordingly.I'm using MQTT.js v4.2.8.
The text was updated successfully, but these errors were encountered: