Fixed socket close event listener.

This commit is contained in:
ThePendulum 2023-12-05 20:55:39 +01:00
parent 59424af388
commit ed5337d828
1 changed files with 1 additions and 1 deletions

View File

@ -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}`);
await delay(config.reconnectDelay * 1000);