From 255b3fd215fb54f4a99a1a9809c3784b59c6cb87 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Fri, 23 Feb 2024 23:17:43 +0100 Subject: [PATCH] bug fix: client push --- src/api/ws.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/ws.ts b/src/api/ws.ts index 55c59a6..1d212a1 100644 --- a/src/api/ws.ts +++ b/src/api/ws.ts @@ -33,6 +33,8 @@ export class wsClient { this.client = new Client(req.socket.remoteAddress ?? ""); this.socket = socket; + clients.push(this); + socket.on("message", async (msg: any) => { try { this.activeRequests++;