This commit is contained in:
nguyentrungthat 2025-11-10 15:40:08 +07:00
parent 34d0f082f5
commit 77787b3c93
1 changed files with 2 additions and 2 deletions

View File

@ -416,8 +416,8 @@ export class WebSocketIo {
console.log(`Socket server is running on port ${SOCKET_IO_PORT}`) console.log(`Socket server is running on port ${SOCKET_IO_PORT}`)
}) })
// 🔹 Tự động lưu dữ liệu định kỳ mỗi 10 giây // 🔹 Tự động lưu dữ liệu định kỳ mỗi 60 giây
setInterval(async () => await this.saveState(), 10000) setInterval(async () => await this.saveState(), 60000)
return io return io
} }