peer-search

0.8.1 • Public • Published

peer-search

Peer discovery for peer-wire-swarm.

Supports

  • DHT
  • UDP trackers
  • HTTP trackers
  • HTTP URL to a line-separated list of peer IPs; keeps the request open until the server closes it, since the result is parsed line by line and directly added to the peer-wire-swarm

Basic example

var PeerSearch = require("peer-search");
 
new PeerSearch(["dht:INFOHASH"], swarm, { 
  min: 50, // Turns peer searching on when waiting peers on the swarm are less than that
  max: 300 // Turns peer searching off when waiting peers on the swarm are more than that 
});

Readme

Keywords

none

Package Sidebar

Install

npm i peer-search

Weekly Downloads

0

Version

0.8.1

License

none

Last publish

Collaborators

  • ivogeorgiev