This is a MQTT Agent
It is a simplification of MQTT in NodeJS. All functions return a native-promise that you can use Asynchronously.
Installation
$ npm install --save mqtt-agent
Usage
const mqttAgent = ; // const agent = new MQTTAgent('mqtt://yourmqttserver:8883'); // Default message callbackconst agent = 'mqtt://your-mqtt-server:8883' { // Do something with your Topic and Message.}; // Custom message callback agent // Return a promise when it is connected to your server ;