npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

dht-rpc-bootstrap

2.0.0

@mafintosh

npmHomeRepoSnykSocket
Downloads:103
$ npm install dht-rpc-bootstrap
DailyWeeklyMonthlyYearly

dht-rpc-bootstrap

Easily spin up a dht-rpc bootstrap node from the command line.

npm install dht-rpc-bootstrap

Usage

A bootstrap node is just a normal dht node, except it doesn't answer any custom queries and will just forward you to other nodes in the network.

dht-rpc-bootstrap --port=10000

After spinning up a node add it to your dht-rpc bootstrap list

var node = dht({
  bootstrap: ['mydomain.com:10000']
})

var stream = node.query({
  command: 'cool-stuff',
  target: ...
})

License

MIT