From dc7a0250dc4a3c33b0d111d2846d3576e249aefa Mon Sep 17 00:00:00 2001 From: nonAnon Date: Thu, 29 Feb 2024 08:50:29 -0600 Subject: [PATCH] Update connect-two-peers-by-key-with-hyperdht.md (#80) added missing instructions explicitly stating how to edit the client-app index. --- howto/connect-two-peers-by-key-with-hyperdht.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.