From 407cdf2e2f47c7a4c771b78d1f457817c396f5d7 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Thu, 1 Feb 2018 21:57:51 -0800 Subject: [PATCH] fix(ipc): disable resubscription --- lib/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 2c827c2..ed10fd6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -183,7 +183,9 @@ exports.connect = async (url, opts = {}) => { } return new Promise((resolve, reject) => { (opts.path - ? MQTT.MqttClient(() => net.createConnection(opts.path)) + ? MQTT.MqttClient(() => net.createConnection(opts.path), { + resubscribe: false + }) : MQTT.connect(...args) ) .on('connect', function(connack) {