Name: ssb-server-channel
Owner: Secure Scuttlebutt Consortium
Description: null
Created: 2018-01-31 00:29:53.0
Updated: 2018-01-31 02:56:56.0
Pushed: 2018-02-15 03:01:51.0
Homepage: null
Size: 16
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
t Server = require('scuttlebot')
t config = { ... } // needs options
nstall the plugin
er
se(require('scuttlebot/plugins/master')) // required
se(require('ssb-server-channel'))
se(require('ssb-backlinks')) // not required, just an example
tart the server
t server = Server(config)
Get the channels and who is subscribed where cb(err, data)
is called with data
of form:
[FeedId, Timestamp],
[FeedId, Timestamp],
e.g
arning: [
['@gaQw6z...', 1518663315275],
['@ye+QM09...', 1518663311233]
azil: [
['@gaQw6z...', 1518663129468],
Get the current state of the channel view. This will wait until the view is up to date, if necessary.
cb(err, data)
is a standard callback function where data
is of the form:
(same as channel.subscriptions
at the moment)
Be careful, this is a stream which provides:
{ sync: true }
values when the view is up to date with the db (if you use the {live: true}
option)For details see : https://github.com/flumedb/flumeview-reduce