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