2.0.2 • Published 10 years ago

timesink v2.0.2

Weekly downloads
2
License
MIT
Repository
-
Last release
10 years ago

timesink

got a timeserver? get a Kefir stream of times from it!

installation

npm install timesink

usage

first, set up a timeserver that returns a plain/text ISO date. (try timeserver!).

to issue a request to your timeserver every 500 ms:

var timesink = require('timesink')

var times = timesync('http://my-timeserver.zone', 500)

API

timesink(url, interval)

issues a GET request to url every interval ms. emits the response to the latest request, in case wires get crossed (see flatMapLatest

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago