The Wayback Machine - https://web.archive.org/web/20221206224349/https://github.com/dat-ecosystem-archive/dat-swarm-defaults
Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

dat-ecosystem-archive/dat-swarm-defaults

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Dat Defaults for Discovery Swarm [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published