Miss any of our Open RFC calls?Watch the recordings here! »

timesink

2.0.2 • Public • Published

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

Keywords

none

Install

npm i timesink

DownloadsWeekly Downloads

3

Version

2.0.2

License

MIT

Last publish

Collaborators

  • avatar