jm-config-mqtt
v0.0.1
Published
mqtt plugin for jm-config
Downloads
5
Readme
jm-config-mqtt
mqtt plugin for jm-config
using
var _onmessage = function(channel, message){
logger.debug('mq channel: %s, message: %s', channel, message);
};
mq.psubscribe('config.*');
mq.onPMessage(function(pattern, channel, message){
_onmessage(channel, message);
});
配置参数
基本配置 请参考 [jm-server] (https://github.com/jm-root/jm-server)
mqtt 服务器Uri