Removed reconnect logic, handled by SocketIO.
This commit is contained in:
parent
d460ba13c5
commit
9f8f503f13
|
@ -180,12 +180,14 @@ async function connect(bot, games) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* reconnect logic handled by SocketIO
|
||||||
socket.io.on('disconnect', async (info) => {
|
socket.io.on('disconnect', async (info) => {
|
||||||
logger.error(`WebSocket closed, reconnecting in ${config.reconnectDelay} seconds: ${info}`);
|
logger.error(`WebSocket closed, reconnecting in ${config.reconnectDelay} seconds: ${info}`);
|
||||||
|
|
||||||
await delay(config.reconnectDelay * 1000);
|
await delay(config.reconnectDelay * 1000);
|
||||||
socket.connect();
|
socket.connect();
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`Failed to connect, retrying in ${config.reconnectDelay} seconds: ${error.message}`);
|
logger.error(`Failed to connect, retrying in ${config.reconnectDelay} seconds: ${error.message}`);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue