Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var timeseries = require('timeseries')
var ts = timeseries('./db')
var s = ts.createStream()
s.pipe(net.connect(3000)).pipe(s)
// display chart with realtime updates!
ts('the-id').createRangeStream(start).pipe(listener)
ts('the-id').get(1337, cb)
// set at given date
ts('the-id').add(1337, '324,345,456,657')
// set at current date
ts('the-id').add('324,345,456,657')
// store min-max
ts.on('update', function (id, k, v) {
// logic...
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.