range-emitter
May 2, 2017 ยท View on GitHub
range emitter using levelup ranges.
Inspired by multileveldown
methods
var re = require('range-emitter')
re.subscribe (range, cb, [resend=false])
range in the format of ltgt
cb callback(key, type) type can be put or delete
resend if true will resend the subscriptions to the server
re.subscribe (key, cb, [resend=false])
key single key to subscribe to
cb callback(key, type) type can be put or delete
resend if true will resend the subscriptions to the server
re.subscribe (cb, [resend=false])
subscribe to all keys
cb callback(key, type) type can be put or delete
resend if true will resend the subscriptions to the server
re.unsubscribe (rangeOrKey, cb)
unsubscribe a range or key