From 85fc02696d06e4e98c513bbe4ea9083f7c6cd585 Mon Sep 17 00:00:00 2001 From: Nour Alharithi Date: Wed, 21 Feb 2024 08:33:28 -0800 Subject: [PATCH] increase the buffered amount size for killing connections --- src/wsConnectionManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wsConnectionManager.ts b/src/wsConnectionManager.ts index 7799b9c..1afaec4 100644 --- a/src/wsConnectionManager.ts +++ b/src/wsConnectionManager.ts @@ -293,7 +293,7 @@ async function main() { set = new Set([...set, ...wsSet]); } for (const ws of set) { - if (ws.bufferedAmount > 100) { + if (ws.bufferedAmount > 350000) { ws.close(); } }