Add doc to hub's disconnect event

This commit is contained in:
Leo Bonnargent 2019-11-18 09:14:32 +01:00
parent 2482422302
commit abd21a88b2

View File

@ -41,6 +41,10 @@ export class Hub extends EventEmitter {
this.autoSubscribe = !!autoSubscribe;
this._bleDevice = device;
device.on("disconnect", () => {
/**
* Emits when the hub is disconnected.
* @event Hub#disconnect
*/
this.emit("disconnect");
});
}