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