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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
IMPROVEMENT: The MQTT on_message event, and the topic-specific callback passed to subscribe(), have added dup, qos, and retain params.
IMPROVEMENT: Outgoing MQTT Payload type now accepts ArrayBuffer and any ArrayBufferView (ex: Uint8Array) type.
BUGFIX: on_message payload typescript signature changed from Buffer to ArrayBuffer.
This is a semi-breaking change. There were two callback passing payloads, one signature claimed to pass ArrayBuffer payloads and the other claimed to pass Buffer payloads. In reality the node implementation always passed ArrayBuffer and the browser implementation always passed Buffer. Now, both callbacks share a signature, they both claim to pass ArrayBuffer and both the node and browser implementations actually do pass ArrayBuffer
BUGFIX: browser MQTT publish() no longer tries to turn everything to strings. ArrayBuffer and ArrayBufferView types will pass their bytes straight through.