Fixed socket close event listener.
This commit is contained in:
@@ -180,7 +180,7 @@ async function connect(bot, games) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.io.on('close', 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user