*missing storing the socket

This commit is contained in:
Derrick Hammer 2023-03-19 11:14:31 -04:00
parent 0ee94ca1e5
commit ce24ca1bd9
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,10 @@ export class SwarmClient extends Client {
this._sockets.delete(socketId); this._sockets.delete(socketId);
}); });
if (!this._sockets.has(socketId)) {
this._sockets.set(socketId, socket);
}
this.emit("connection", socket); this.emit("connection", socket);
} }
); );