*missing storing the socket
This commit is contained in:
parent
0ee94ca1e5
commit
ce24ca1bd9
|
@ -98,6 +98,10 @@ export class SwarmClient extends Client {
|
|||
this._sockets.delete(socketId);
|
||||
});
|
||||
|
||||
if (!this._sockets.has(socketId)) {
|
||||
this._sockets.set(socketId, socket);
|
||||
}
|
||||
|
||||
this.emit("connection", socket);
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue