From 845aa5b3cc5b512ab899888e507d6c2290e5d155 Mon Sep 17 00:00:00 2001 From: Yonle Date: Mon, 20 May 2024 13:16:53 +0700 Subject: [PATCH] worker: fix bug where subscription limit is not being handled properly Signed-off-by: Yonle --- worker_bouncer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker_bouncer.js b/worker_bouncer.js index e808d68..9809442 100644 --- a/worker_bouncer.js +++ b/worker_bouncer.js @@ -44,7 +44,7 @@ parentPort.on('message', m => { return parentPort.postMessage({ type: "upstream_msg", id: m.id, - data: JSON.stringify(["CLOSED", data[1], "rate-limited: too many subscriptions."]) + data: JSON.stringify(["CLOSED", m.sid, "rate-limited: too many subscriptions."]) }); const origID = m.sid; if (ws.fakesubalias.hasOwnProperty(origID)) {