node package manager

range-emitter

range-emitter

range emitter using levelup ranges.

Inspired by multileveldown

js-standard-style build status npm downloads Greenkeeper badge

Sauce Test Status

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

re.publish (key, type)