sync every 5 seconds

This commit is contained in:
legop3
2025-11-19 17:03:46 -05:00
parent d49ec34f0a
commit a4cc514b9a
+6
View File
@@ -78,6 +78,12 @@ turnEvents.on('activeDriver', () => {
syncAll(); syncAll();
}); });
// sync all sockets 5 seconds
setInterval(() => {
logger.info('Periodic session sync for all clients');
syncAll();
}, 5000);
module.exports = { module.exports = {
buildSession, buildSession,
syncSocket, syncSocket,