*forgot to pass swarm to socket
This commit is contained in:
parent
9c1bedc83e
commit
794ab2f792
|
@ -107,7 +107,7 @@ export class SwarmClient extends Client {
|
||||||
{ swarm: this.swarm },
|
{ swarm: this.swarm },
|
||||||
async (socketId: any) => {
|
async (socketId: any) => {
|
||||||
const socket =
|
const socket =
|
||||||
this._sockets.get(socketId) ?? (await createSocket(socketId));
|
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