Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DWebX Swarm Defaults

npm travis standard

Use DWebX defaults for dns and dht servers in dwebdiscovery 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/distributedweb/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('dwebx-config')

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

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages