Skip to content

Commit

Permalink
Update connect-two-peers-by-key-with-hyperdht.md (#80)
Browse files Browse the repository at this point in the history
added missing instructions explicitly stating how to edit the client-app index.
  • Loading branch information
lukecarriere authored Feb 29, 2024
1 parent 924e1fa commit dc7a025
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion howto/connect-two-peers-by-key-with-hyperdht.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ cd client-app
pear init -y -t terminal
npm install hyperdht b4a
```
Alter `client-app/index.js` to the following:

``` javascript
import DHT from 'hyperdht'
Expand All @@ -83,4 +84,4 @@ pear dev -- <SUPPLY KEY HERE>

The `client-app` will spin up a client, and the public key copied earlier must be supplied as a command line argument for connecting to the server. The client process will log `got connection` into the console when it connects to the server.

Once it's connected, try typing in both terminals.
Once it's connected, try typing in both terminals.

0 comments on commit dc7a025

Please sign in to comment.