Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

docs: add DHT config documentation #1951

Merged
merged 1 commit into from
Mar 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ You can see the bundle in action in the [custom libp2p example](examples/custom-
- `[PeerDiscovery.tag]` (object): configuration for a peer discovery module
- `enabled` (boolean): whether this module is enabled or disabled
- `[custom config]` (any): other keys are specific to the module
- `dht` (object): Configuration options for the DHT
- `enabled` (boolean): whether the DHT is enabled or not (default `true` in Node.js and `false` in the browser)
- `kBucketSize` (number): bucket size (default `20`)
- `randomWalk` (object): configuration for random walk
- `enabled` (boolean): whether random DHT walking is enabled (default `false`)

##### `options.connectionManager`

Expand Down