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,