You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
`callback` must follow `function (err, list) {}` signature, where `err` is an error if the operation was not successful. `list` is an Object containing the following keys:
-`addr` is a [multiaddr](https://github.com/multiformats/js-multiaddr) to a peer node
22
-
-`opts.default` if true, add the default peers to the list
22
+
-`options.default` if true, add the default peers to the list
23
23
-`callback` must follow `function (err, res) {}` signature, where `err` is an error if the operation was not successful. `res.Peers` is an array of added addresses.
-`callback` must follow `function (err, res) {}` signature, where `err` is an error if the operation was not successful. `res.Peers` is an array of addresses.
-`addr` is a [multiaddr](https://github.com/multiformats/js-multiaddr) to a peer node
45
-
-`opts.all` if true, remove all peers from the list
45
+
-`options.all` if true, remove all peers from the list
46
46
-`callback` must follow `function (err, res) {}` signature, where `err` is an error if the operation was not successful. `res.Peers` is an array of removed addresses.
`key` is the key of the value that should be fetched from the config file. If no key is passed, then the whole config should be returned. `key` should be of type String.
16
16
@@ -35,9 +35,9 @@ A great source of [examples][] can be found in the tests for this API.
0 commit comments