mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
sync every 5 seconds
This commit is contained in:
@@ -78,6 +78,12 @@ turnEvents.on('activeDriver', () => {
|
||||
syncAll();
|
||||
});
|
||||
|
||||
// sync all sockets 5 seconds
|
||||
setInterval(() => {
|
||||
logger.info('Periodic session sync for all clients');
|
||||
syncAll();
|
||||
}, 5000);
|
||||
|
||||
module.exports = {
|
||||
buildSession,
|
||||
syncSocket,
|
||||
|
||||
Reference in New Issue
Block a user