*Emit the ready event after successful init

This commit is contained in:
Derrick Hammer 2023-02-01 08:29:35 -05:00
parent 50aa507410
commit c7fd7f294b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -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<boolean> {