hypercore icon indicating copy to clipboard operation
hypercore copied to clipboard

Feature request: Add setUploading() method

Open gmaclennan opened this issue 5 months ago • 0 comments

This is a request to add a method to control whether a core is uploading, e.g. whether it will respond to "wants" from other peers by sending data. I think the undocumented setActive method does this for downloading, but not for uploading.

Use case 1: A peer might have limited upstream bandwidth, and only want to download data.

Use case 2: A peer might want to get an updated length from a peer before deciding to enable uploading and downloading.

Related: #555

I think #305 can be closed, superseded by this issue and #555.

gmaclennan avatar Aug 29 '24 10:08 gmaclennan