Skip to content

Commit

Permalink
fixed some broken hyperdht.md anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapaezbas committed Mar 1, 2024
1 parent 1c7a120 commit 4b9dd55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions building-blocks/hyperdht.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Notable features include:
* [DHT.bootstrapper(port, host, \[options\])](hyperdht.md#dht.bootstrapper)
* [node.destroy(\[options\])](hyperdht.md#node.destroy)
* [Creating P2P servers:](hyperdht.md#creating-p2p-servers)
* [node.createServer(\[options\], \[onconnection\])](hyperdht.md#const-server--nodecreateserveroptions-onconnection)
* [node.createServer(\[options\], \[onconnection\])](hyperdht.md#node.createserver)
* Methods:
* [server.listen(keyPair)](hyperdht.md#server.listen)
* [server.refresh()](hyperdht.md#server.refresh)
Expand All @@ -34,7 +34,7 @@ Notable features include:
* [socket.remotePublicKey](hyperdht.md#socket.remotepublickey)
* [socket.publicKey](hyperdht.md#socket.publickey)
* Events:
* [open](hyperdht.md#socketonopen)
* [open](hyperdht.md#socket.onopen)
* [Additional Peer Discovery](hyperdht.md#additional-peer-discovery):
* Methods:
* [node.lookup(topic, \[options\])](hyperdht.md#node.lookup)
Expand Down Expand Up @@ -86,15 +86,15 @@ Any options passed are forwarded to dht-rpc.

Use this method to create a bootstrap node for in order to run a Hyperswarm network.

#### **`await node.destroy([options])`** {#dht.destroy}
#### **`await node.destroy([options])`** {#node.destroy}

Fully destroy this DHT node.

> This will also unannounce any running servers. To force close the node without waiting for the servers to unannounce pass `{ force: true }`.
### Creating P2P Servers

#### **`const server = node.createServer([options], [onconnection])`** {#server.createserver}
#### **`const server = node.createServer([options], [onconnection])`** {#node.createserver}

Creates a new server for accepting incoming encrypted P2P connections.

Expand Down

0 comments on commit 4b9dd55

Please sign in to comment.