Skip to content

Commit f636b45

Browse files
Add missing device's 'end' event propagation. (#384)
Bind and propagate mqtt-js 'end' event Co-authored-by: Salvador Ortiz <[email protected]>
1 parent 1eaeb85 commit f636b45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

device/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,9 @@ function DeviceClient(options) {
807807

808808
that.emit('reconnect');
809809
});
810+
device.on('end', function() {
811+
that.emit('end');
812+
});
810813
device.on('offline', function() {
811814
that.emit('offline');
812815
});

0 commit comments

Comments
 (0)