1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-26 13:48:53 +08:00

Fix MQTT adapter by setting subscription queue (#561)

Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
This commit is contained in:
Aleksandar Novaković 2019-01-28 22:55:14 +01:00 committed by Drasko DRASKOVIC
parent 1947d39119
commit 330545ad38

View File

@ -80,7 +80,7 @@ function startMqtt() {
return net.createServer(aedes.handle).listen(config.mqtt_port);
}
nats.subscribe('channel.*', function (msg) {
nats.subscribe('channel.*', {'queue':'mqtts'}, function (msg) {
var m = message.RawMessage.decode(Buffer.from(msg)),
packet;
if (m && m.Protocol !== 'mqtt') {