multifeed-replicate
replicate feeds contained in a multifeed-storage
example
var mstorage =var ram =var Protocol =var replicate =var s0 =var s1 =var localFeed = s0localFeed{var p0 = truevar p1 = falsevar r0 =var r1 =p0remoteFeedr1}
api
var replicate =
var r = replicate(storage, protocol, opts)
Create a new replicate instance r
from a multifeed-storage instance,
a hypercore-protocol instance, and opts
which are forwarded to the
hypercore replication method.
r.open(key, opts)
Open a channel to replicate a feed by its key
. The feed must have been created
(locally or remotely) first.
r.on('error', function (err) {})
Catch internal error events.
install
npm install multifeed-replicate
license
BSD