1.1.2 • Published 2 years ago
egg-mqtt-waynechu v1.1.2
egg-mqtt-waynechu
Install
$ npm i egg-mqtt-waynechu --save
Usage
// {app_root}/config/plugin.js
exports.mqtt = {
enable: true,
package: 'egg-mqtt-waynechu',
};
Configuration
// {app_root}/config/config.default.js
exports.mqtt = {
client: {
host: 'host',
port: 'port',
username: 'user',
password: 'password',
clientId: '',
connectTimeout: 30 * 1000,
keepalive: 5,
clean: false,
},
};
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.