Removed reconnect logic, handled by SocketIO.

This commit is contained in:
ThePendulum 2023-12-07 22:05:51 +01:00
parent d460ba13c5
commit 9f8f503f13
1 changed files with 2 additions and 0 deletions

View File

@ -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}`);