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

Commit

Permalink
fix(ipc): disable resubscription
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Feb 2, 2018
1 parent 176f390 commit 407cdf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 407cdf2

Please sign in to comment.