From 794ab2f7925050f81652fdaa55c4de9bece6e865 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 6 Apr 2023 10:08:23 -0400 Subject: [PATCH] *forgot to pass swarm to socket --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1945c63..34ca55e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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);