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 separate SimpleCallback (the thing most apps want) and LowLevelCallback (a thing I needed when building an MQTT bridge).
    • โœ‚ Removed runClient and runClientTLS from the API. They don't provide any value over connectURI or runMQTTConduit.
    • 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.