hyperdiscovery icon indicating copy to clipboard operation
hyperdiscovery copied to clipboard

update readme to include opts.live

Open cblgh opened this issue 7 years ago • 1 comments

I'm going through all of the hyper*universe and noticed that hypervision creates its swarms like hyperdiscovery(feed, {live: true}), where feed is a hypercore.

Currently the readme is lacking the live option, so I'm not entirely sure what it does; feels like it might let peers know that a feed is creating new data in realtime?

cblgh avatar Jul 08 '17 12:07 cblgh

Ah yes, we need to document that! Hyperdiscovery passes that option to the feed.replicate() in hypercore.

The live option will keep the replication stream open after all data is downloaded. live: false is useful if you want to download the latest set of data and exit when the stream closes.

joehand avatar Jul 08 '17 17:07 joehand