Closed RangerMauve closed 5 years ago
Following up on the hypercore extension support, this surfaces the extensions API in hyperdrive so that applications can build on top of it.
This could simplify code for things like Beaker's datPeers API.
Adds:
extensions
extension
TODO:
Should I maybe redo this PR against the v10 branch, or could we get it into a v9 release before then?
This is ready for review. Just need to wait for hypercore 7.5.0 to be released on NPM, then I'll need to update the package.json version
Following up on the hypercore extension support, this surfaces the extensions API in hyperdrive so that applications can build on top of it.
This could simplify code for things like Beaker's datPeers API.
Adds:
extensions
option in constructor that gets passed to the metadata hypercoreextension
method for sending an extension message to all peersTODO:
Should I maybe redo this PR against the v10 branch, or could we get it into a v9 release before then?