Skip to content

Commit

Permalink
Added subscribe opts
Browse files Browse the repository at this point in the history
  • Loading branch information
oshoemaker authored Feb 22, 2019
1 parent f178ea4 commit bf1dc13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mqtt_ascoltatore.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ MQTTAscoltatore.prototype.subscribe = function subscribe(topic, callback, done)
debug("registering new subscriber for topic " + topic);

var opts = {
qos: 1
qos: 1,
nl: true
};
this._client.subscribe(this._subTopic(topic), opts, function() {
debug("registered new subscriber for topic " + topic);
Expand Down

0 comments on commit bf1dc13

Please sign in to comment.