From c7fd7f294b19be44187fe93fc05fccabb6804919 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 1 Feb 2023 08:29:35 -0500 Subject: [PATCH] *Emit the ready event after successful init --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 185dc2f..2d603df 100644 --- a/src/index.ts +++ b/src/index.ts @@ -97,6 +97,8 @@ export default class HyperswarmWeb extends EventEmitter { this._processQueuedActions(); await this._activeRelay.dht.ready(); this._connectionMutex.release(); + + this.emit("ready"); } private async isServerAvailable(connection: string): Promise {