* Refactor swarm setup event to include the current instance in the emitted data.

This commit is contained in:
Derrick Hammer 2023-04-08 15:56:43 -04:00
parent cf27a6518f
commit fdda2befa8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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<T extends EventEmitter.EventNames<string | symbol>>(
event: T,