*update dist
This commit is contained in:
parent
794ab2f792
commit
4cd89acb12
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue