mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
sync every 5 seconds
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user