Clock
Clock handles synchronizing the local time against the server, adjusting for any client-size clock skew.
Method Summary
Public Methods | ||
public |
localToRemote(timestamp: number): Promise<number> Adjusts a timestamp created locally to the one on the remote server. |
|
public |
remoteToLocal(timestamp: number): Promise<number> Adjusts a timestamp given by the remote server to the local timestamp. |