From abd21a88b25e126ecc19ca336d85e1eae277ace6 Mon Sep 17 00:00:00 2001 From: Leo Bonnargent Date: Mon, 18 Nov 2019 09:14:32 +0100 Subject: [PATCH] Add doc to hub's disconnect event --- src/hub.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hub.ts b/src/hub.ts index 684fd5c..d96af8e 100644 --- a/src/hub.ts +++ b/src/hub.ts @@ -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"); }); }