Skip to content

dBrowser/dbrowser-swarm-defaults

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dat Swarm Defaults

npm travis standard

Use Dat defaults for dns and dht servers in hyperdiscovery or dweb-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/dwswarm/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('dat-swarm-defaults')

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

License

MIT

About

Dat Defaults for Discovery Swarm

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%