* Add call to emitAsync method to trigger "setup" event on swarm object.

This commit is contained in:
Derrick Hammer 2023-04-08 15:55:09 -04:00
parent 952b3a0d1a
commit cf27a6518f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -191,6 +191,7 @@ export class Socket extends Client {
this._remotePublicKey = info.remotePublicKey;
this._rawStream = info.rawStream;
await this.swarm.emitAsync("setup");
}
on<T extends EventEmitter.EventNames<string | symbol>>(
event: T,