Fixed socket close event listener.
This commit is contained in:
parent
59424af388
commit
ed5337d828
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue