MQTT JavaScript client library

    Due to the single-threaded nature of JavaScript, MQTT.js is a fully asynchronous MQTT client. MQTT.js supports MQTT and MQTT over WebSocket. The support in different operating environments is as follows:

    Install using npm :

    In the environment where Node.js is installed, you can use MQTT.js global ly in the form of a command line of command.

    MQTT.js MQTT 5.0 support

    Currently, MQTT.js has fully supported MQTT 5.0.