From 9f8f503f130191e0cb8a30ff0e6cdd6a50dd16f8 Mon Sep 17 00:00:00 2001 From: ThePendulum Date: Thu, 7 Dec 2023 22:05:51 +0100 Subject: [PATCH] Removed reconnect logic, handled by SocketIO. --- src/schat.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/schat.js b/src/schat.js index 96e86eb..3ad0c92 100755 --- a/src/schat.js +++ b/src/schat.js @@ -180,12 +180,14 @@ async function connect(bot, games) { } }); + /* reconnect logic handled by SocketIO socket.io.on('disconnect', async (info) => { logger.error(`WebSocket closed, reconnecting in ${config.reconnectDelay} seconds: ${info}`); await delay(config.reconnectDelay * 1000); socket.connect(); }); + */ } catch (error) { logger.error(`Failed to connect, retrying in ${config.reconnectDelay} seconds: ${error.message}`);