diff --git a/howto/connect-two-peers-by-key-with-hyperdht.md b/howto/connect-two-peers-by-key-with-hyperdht.md index e1d17e6..8faaa8d 100644 --- a/howto/connect-two-peers-by-key-with-hyperdht.md +++ b/howto/connect-two-peers-by-key-with-hyperdht.md @@ -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 -- 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. \ No newline at end of file +Once it's connected, try typing in both terminals.