bug fix: client push

This commit is contained in:
jusax23 2024-02-23 23:17:43 +01:00
parent 2eea58808b
commit 255b3fd215
Signed by: jusax23
GPG key ID: 4A6CED31031AE931

View file

@ -33,6 +33,8 @@ export class wsClient {
this.client = new Client(req.socket.remoteAddress ?? ""); this.client = new Client(req.socket.remoteAddress ?? "");
this.socket = socket; this.socket = socket;
clients.push(this);
socket.on("message", async (msg: any) => { socket.on("message", async (msg: any) => {
try { try {
this.activeRequests++; this.activeRequests++;