mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-17 14:34:19 +01:00
Update connect-two-peers-by-key-with-hyperdht.md (#80)
added missing instructions explicitly stating how to edit the client-app index.
This commit is contained in:
@@ -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'
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user