Skip to content

Commit

Permalink
Add missing device's 'end' event propagation. (#384)
Browse files Browse the repository at this point in the history
Bind and propagate mqtt-js 'end' event

Co-authored-by: Salvador Ortiz <sog@msg.mx>
  • Loading branch information
bretambrose and salortiz authored Jul 9, 2021
1 parent 1eaeb85 commit f636b45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions device/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,9 @@ function DeviceClient(options) {

that.emit('reconnect');
});
device.on('end', function() {
that.emit('end');
});
device.on('offline', function() {
that.emit('offline');
});
Expand Down

0 comments on commit f636b45

Please sign in to comment.