diff --git a/device/index.js b/device/index.js index 970ba3d..4fcd96f 100644 --- a/device/index.js +++ b/device/index.js @@ -807,6 +807,9 @@ function DeviceClient(options) { that.emit('reconnect'); }); + device.on('end', function() { + that.emit('end'); + }); device.on('offline', function() { that.emit('offline'); });