Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Commit 407cdf2

Browse files
committed
fix(ipc): disable resubscription
1 parent 176f390 commit 407cdf2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ exports.connect = async (url, opts = {}) => {
183183
}
184184
return new Promise((resolve, reject) => {
185185
(opts.path
186-
? MQTT.MqttClient(() => net.createConnection(opts.path))
186+
? MQTT.MqttClient(() => net.createConnection(opts.path), {
187+
resubscribe: false
188+
})
187189
: MQTT.connect(...args)
188190
)
189191
.on('connect', function(connack) {

0 commit comments

Comments
 (0)