- IMPROVEMENT: The MQTT
on_message
event, and the topic-specific callback passed tosubscribe()
, have addeddup
,qos
, andretain
params. - IMPROVEMENT: Outgoing MQTT
Payload
type now acceptsArrayBuffer
and anyArrayBufferView
(ex:Uint8Array
) type. - BUGFIX:
on_message
payload typescript signature changed fromBuffer
toArrayBuffer
.- This is a semi-breaking change. There were two callback passing payloads, one signature claimed to pass
ArrayBuffer
payloads and the other claimed to passBuffer
payloads. In reality the node implementation always passedArrayBuffer
and the browser implementation always passedBuffer
. Now, both callbacks share a signature, they both claim to passArrayBuffer
and both the node and browser implementations actually do passArrayBuffer
- This is a semi-breaking change. There were two callback passing payloads, one signature claimed to pass
- BUGFIX: browser MQTT
publish()
no longer tries to turn everything to strings.ArrayBuffer
andArrayBufferView
types will pass their bytes straight through. - BUGFIX: browser MQTT
unsubscribe()