Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IClockSyncOptions

Hierarchy

  • IClockSyncOptions

Index

Properties

Optional checkInterval

checkInterval: number

How often should we check for a sync status

Optional sampleDelay

sampleDelay: number

How long to wait between sampling during a sync call.

sampleFunc

sampleFunc: function

the function to call to check the server time. Should resolve with the unix timestamp of the server.

Type declaration

    • (): Promise<number>
    • Returns Promise<number>

Optional sampleSize

sampleSize: number

When retrieving a time from the server how many samples should we take?

Optional threshold

threshold: number

If the clock falls this far out of sync, re-sync from the server

Generated using TypeDoc