From fdda2befa8948382e329089f4b6bc35ecd7febad Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 8 Apr 2023 15:56:43 -0400 Subject: [PATCH] * Refactor swarm setup event to include the current instance in the emitted data. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index a3e4946..53f4868 100644 --- a/src/index.ts +++ b/src/index.ts @@ -191,7 +191,7 @@ export class Socket extends Client { this._remotePublicKey = info.remotePublicKey; this._rawStream = info.rawStream; - await this.swarm.emitAsync("setup"); + await this.swarm.emitAsync("setup", this); } on>( event: T,