From cf27a6518f4e9ffd603469070c6fb44e145c0055 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 8 Apr 2023 15:55:09 -0400 Subject: [PATCH] * Add call to emitAsync method to trigger "setup" event on swarm object. --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 932fac5..a3e4946 100644 --- a/src/index.ts +++ b/src/index.ts @@ -191,6 +191,7 @@ export class Socket extends Client { this._remotePublicKey = info.remotePublicKey; this._rawStream = info.rawStream; + await this.swarm.emitAsync("setup"); } on>( event: T,