fixed timeout issue

implemented timeoutManager, a more efficient solution for managing timeouts in RAM memory. this resolves the problem of lingering timeouts in the server, providing faster removal of old timeouts and improving overall performance.
This commit is contained in:
Wenszel
2023-12-20 10:17:49 +01:00
parent f07c1c8577
commit e5a69fa4a9
8 changed files with 381 additions and 28 deletions
+3 -2
View File
@@ -1,2 +1,3 @@
const colors = ["red", "blue", "green", "yellow"];
module.exports = { colors };
const COLORS = ['red', 'blue', 'green', 'yellow'];
const MOVE_TIME = 15000;
module.exports = { COLORS, MOVE_TIME };