From 4cd89acb1264e27214048cb31c8b8414ae8cb9f0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 6 Apr 2023 10:08:44 -0400 Subject: [PATCH] *update dist --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index a449b55..039cc8b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -75,7 +75,7 @@ export class SwarmClient extends Client { async _listen() { if (!this._connectionListener) { this._connectionListener = this.connectModule("listenConnections", { swarm: this.swarm }, async (socketId) => { - const socket = this._sockets.get(socketId) ?? (await createSocket(socketId)); + const socket = this._sockets.get(socketId) ?? (await createSocket(socketId, this)); socket.on("close", () => { this._sockets.delete(socketId); });