Browse Source

chore: add docs for node.findNode() (#36)

Fixes #35
session-estimator
Gregor MacLennan 3 years ago
committed by GitHub
parent
commit
65132c2de1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      README.md

4
README.md

@ -309,6 +309,10 @@ nodes are stored in `stream.closestNodes` array.
If you want to access the closest replies to your provided target you can see those at `stream.closestReplies`.
#### `stream = node.findNode(target, [options])`
Find the node closest to the node with id `target`. Returns a stream encapsulating the query (see `node.query()`). `options` are the same as `node.query()`.
#### `node.destroy()`
Shutdown the DHT node.

Loading…
Cancel
Save