Merge pull request #52 from aileo/hub-disconnect

Add doc to hub's disconnect event
This commit is contained in:
Nathan Kellenicki 2019-12-03 09:56:56 -08:00 committed by GitHub
commit 0d076aa7e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,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");
});
}