dweb-swarm-defaults

2.0.0 • Public • Published

DWeb Swarm Defaults

npm travis standard

Use DWeb defaults for dns and dht servers in dweb-discovery or dweb-discovery-swarm. The dns and dht servers are used to discover other peers.

Using Other Discovery Servers

Run discovery servers with dweb-dns-discovery or a bittorrent-dht server (such as https://github.com/hyperswarm/dht).

Usage

Create a config object and pass it to discovery swarm.

Any options you specify will overwrite the defaults. See discovery swarm for options.

var Swarm = require('dweb-discovery-swarm')
var defaults = require('dweb-swarm-defaults')
 
var config = defaults({
  stream: function () {
    return drive.createPeerStream()
  }
})
var swarm = Swarm(config)

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i dweb-swarm-defaults

Weekly Downloads

12

Version

2.0.0

License

MIT

Unpacked Size

4.49 kB

Total Files

6

Last publish

Collaborators

  • shikhars3711