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.
2 parents f6c2595 + c6ce9ea commit 35b3b34Copy full SHA for 35b3b34
lib/mqtt.js
@@ -48,6 +48,10 @@ Cayenne.prototype.connect = function(callback) {
48
return callback(null, self.client);
49
});
50
51
+ this.client.on('close', function () {
52
+ self.emit("disconnect");
53
+ });
54
+
55
this.client.on('message', self.onMessage.bind(self));
56
57
const cmdTopic = apiVersion + '/:username/'+THINGS+'/:thingId/cmd/:channel';
0 commit comments