*update dist

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

2
dist/index.js vendored
View File

@ -75,7 +75,7 @@ export class SwarmClient extends Client {
async _listen() { async _listen() {
if (!this._connectionListener) { if (!this._connectionListener) {
this._connectionListener = this.connectModule("listenConnections", { swarm: this.swarm }, async (socketId) => { 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", () => { socket.on("close", () => {
this._sockets.delete(socketId); this._sockets.delete(socketId);
}); });