Skip to content
Dat Defaults for Discovery Swarm
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore create datland with defaults and basic tests Mar 3, 2016
.travis.yml add travis and update docs stuff May 1, 2018
LICENSE.md add travis and update docs stuff May 1, 2018
index.js standard fix Dec 28, 2018
package.json
readme.md add discovery server info, closes #5 Dec 28, 2018
test.js add travis and update docs stuff May 1, 2018

readme.md

Dat Swarm Defaults

npm travis standard

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

Using Other Discovery Servers

Run discovery servers with 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('discovery-swarm')
var defaults = require('dat-swarm-defaults')

var config = defaults({
  stream: function () {
    return drive.createPeerStream()
  }
})
var swarm = Swarm(config)

License

MIT

You can’t perform that action at this time.