UNPKG

rocket.chat.mqtt

Version:

It's a MQTT Server, using redis to scale horizontally.

34 lines (28 loc) 604 B
var QlobberSub = require('../qlobber-sub.js'); var times = require('./common'); function add(matcher, clientId, topic, qos) { matcher.add(topic, { clientId: clientId, topic: topic, qos: qos }); } function remove(matcher, clientId, topic, qos) { matcher.remove(topic, { clientId: clientId, topic: topic }); } function match(matcher, topic) { return matcher.match(topic); } function test(matcher, clientId, topic) { return matcher.test(topic, { clientId: clientId, topic: topic }); } times(QlobberSub, add, remove, match, test);