I have just come across this repository. Can it be used to sync two timers located on a NodeJS server and browser respectively? In particular, I am looking to do the following: the user starts the timer in the browser, which in turn starts the timer for the same period on the server. I can easily live with a ~0.1 - 1 sec discrepancy between the two. If the browser window is reloaded, I would like to pick up exactly where the server timer currently stands. There is also a mobile app that needs to sync with the same server timer.
Would you have any advice on an efficient way of getting it done?
No, this library only synchronizes the browser with the server; there's no provision to initiate a timer from the browser. Good luck with your project.
I have just come across this repository. Can it be used to sync two timers located on a NodeJS server and browser respectively? In particular, I am looking to do the following: the user starts the timer in the browser, which in turn starts the timer for the same period on the server. I can easily live with a ~0.1 - 1 sec discrepancy between the two. If the browser window is reloaded, I would like to pick up exactly where the server timer currently stands. There is also a mobile app that needs to sync with the same server timer.
Would you have any advice on an efficient way of getting it done?