This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

dat-swarm-defaults

1.0.3 • Public • Published

deprecated

More info on active projects and modules at dat-ecosystem.org


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

/dat-swarm-defaults/

    Package Sidebar

    Install

    npm i dat-swarm-defaults

    Weekly Downloads

    53

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    4.73 kB

    Total Files

    6

    Last publish

    Collaborators

    • cblgh
    • frando
    • jhand
    • juliangruber
    • leichtgewicht
    • ninabreznik
    • pfrazee
    • rangermauve
    • serapath
    • the-real-dk
    • zootella