-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
method to enable/disable downloading #305
Comments
Should be
and we should "ref" count these per session I guess |
Thinking about this more, this might be more useful to set per peer when replicating. Use case: To save bandwidth only want to upload data to a subset of peers, e.g. a peers on a local network, or a device on a low-bandwidth internet connection might choose to only upload to a single peer. Not sure about the API for this. It looks like the |
This might be tricky because would you not have to queue "wants" from a peer with |
Partial fix to holepunchto#305
It would be useful to be able to send/receive the updated length/bitfield of a core among peers with the ability to block downloading of data.
Our use cases for this I think are mostly around authorization as well as limiting & being very targeted with bandwidth use.
This might include an option that's passed to the Hypercore constructor and a method to call to enable/disable downloading.
The text was updated successfully, but these errors were encountered: