We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eda185 commit 50f9202Copy full SHA for 50f9202
lib/client.js
@@ -245,6 +245,9 @@ MqttClient.prototype._setupStream = function () {
245
// Echo connection errors
246
parser.on('error', this.emit.bind(this, 'error'));
247
248
+ // many drain listeners are needed for qos 1 callbacks if the connection is intermittent
249
+ this.stream.setMaxListeners(1000);
250
+
251
clearTimeout(this.connackTimer);
252
this.connackTimer = setTimeout(function () {
253
that._cleanUp(true);
0 commit comments