sank

0.2.1 • Public • Published

sank

A function for syncing with a timeserver using a Bacon property.

Only tested in the browser so far. Requires $ to be bound to jquery.

sank (timeServerURL, updateTimeInterval)

Returns a Bacon property representing the time diff (in ms) between client time and the timeserver. the property requests sends a request to timeServerURL every updateTimeInterval

timeServerURL must return an ISO-formatted date on a GET request.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    0
    • latest

Version History

Package Sidebar

Install

npm i sank

Weekly Downloads

3

Version

0.2.1

License

MIT

Last publish

Collaborators

  • elsehow