Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

update readme to include opts.live #7

Open
cblgh opened this issue Jul 8, 2017 · 1 comment
Open

update readme to include opts.live #7

cblgh opened this issue Jul 8, 2017 · 1 comment

Comments

@cblgh
Copy link

cblgh commented Jul 8, 2017

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?

@joehand
Copy link
Collaborator

joehand commented Jul 8, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants