*forgot to pass swarm to socket

This commit is contained in:
Derrick Hammer 2023-04-06 10:08:23 -04:00
parent 9c1bedc83e
commit 794ab2f792
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ export class SwarmClient extends Client {
{ swarm: this.swarm },
async (socketId: any) => {
const socket =
this._sockets.get(socketId) ?? (await createSocket(socketId));
this._sockets.get(socketId) ?? (await createSocket(socketId, this));
socket.on("close", () => {
this._sockets.delete(socketId);