A lightweight plugin to synchronize time on the server and client.
meteor add flowhamster:timesync
We define a pseudo-collection on the client timesync
. The server defines an anonymous publication on timesync
that triggers the changed
observable an a 10 millisecond interval. When the publication stops the interval is cleared.
Timesync.time()
returns the last received server time.