* Add call to emitAsync method to trigger "setup" event on swarm object.
This commit is contained in:
parent
952b3a0d1a
commit
cf27a6518f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue