Add doc to hub's disconnect event
This commit is contained in:
parent
2482422302
commit
abd21a88b2
@ -41,6 +41,10 @@ export class Hub extends EventEmitter {
|
|||||||
this.autoSubscribe = !!autoSubscribe;
|
this.autoSubscribe = !!autoSubscribe;
|
||||||
this._bleDevice = device;
|
this._bleDevice = device;
|
||||||
device.on("disconnect", () => {
|
device.on("disconnect", () => {
|
||||||
|
/**
|
||||||
|
* Emits when the hub is disconnected.
|
||||||
|
* @event Hub#disconnect
|
||||||
|
*/
|
||||||
this.emit("disconnect");
|
this.emit("disconnect");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user