net-mqtt v0.6.0.0 Release Notes
Release Date: 2019-10-13 // over 4 years ago-
๐ Many changes went into this release.
๐ New Features
- ๐ WebSocket support (ws:// and wss://)
- โ Added the
mqtt-watch
CLI tool (which I use a lot) - Lots of work on correctness WRT connection and callback failures.
- Low-Level callbacks (providing all the details of the published message)
- โ Added
runMQTTConduit
to allow running the client over any Conduit provider.
Incompatibilities
As part of adding features and improving correctness, I've made a few API changes.
- ๐ป
waitForClient
now throws an exception on failure. This greatly simplified usage and has made a variety of my applications more reliable when networks and computers fail. - Callbacks are now
MessageCallback
. This primarily allowed me to separateSimpleCallback
(the thing most apps want) andLowLevelCallback
(a thing I needed when building an MQTT bridge). - โ Removed
runClient
andrunClientTLS
from the API. They don't provide any value overconnectURI
orrunMQTTConduit
. - All callbacks are now asynchronous. Before, QoS2 would be by necessity, but a bad callback could cause problems with the machinery, so they're all independent now. This may not be noticeable in most applications, but it's something to consider.