hyperdrive-network-heuristics

Networking heuristics for announcing Hyperdrives on Hyperswarm.

Usage no npm install needed!

<script type="module">
  import hyperdriveNetworkHeuristics from 'https://cdn.skypack.dev/hyperdrive-network-heuristics';
</script>

README

hyperdrive-network-heuristics

Networking heuristics for announcing Hyperdrives on Hyperswarm

These heuristics are used in the hyperdrive-daemon-client and @hyperspace/hyperdrive.

Usage

There's only one exported method, which is used to enable the networking heuristics:

applyHeuristics(drive, networker)

Applies networking heuristics to a drive.

  • drive: A Hyperdrive instance
  • networker: A @corestore/networker or Hyperspace RemoteNetworker

License

MIT