From 9a96a6b220d84cf8cfe0560371a7da38bc420875 Mon Sep 17 00:00:00 2001 From: rairyx Date: Fri, 19 Jul 2019 23:10:08 -0700 Subject: [PATCH] Update README.md --- README.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 7029358..db1ef52 100644 --- a/README.md +++ b/README.md @@ -42,23 +42,19 @@ This peer, which is not in bootstrapper mode, creates a node, subscribes to the ``` cd pubsub -./raven ../util/private_key.bin.peer.W6 6001 +./raven ../util/private_key.bin.peer.w6 6001 ``` -**Fourth terminal**: Create a JS peer to connect to bootstrap and publish on topic +**Fourth terminal**: Create a third go peer to connect to bootstrap and publish on topic ``` -cd pubsub/js -npm install # first time only -node index.js /ip4/127.0.0.1/tcp/5555/ipfs/QmehVYruznbyDZuHBV4vEHESpDevMoAovET6aJ9oRuEzWa +cd pubsub +./raven ../util/private_key.bin.peer.d9 6002 + ``` -This JS peer will accept lines of text typed on stdin, and publish them on the PubSub topic. - -(Note that the JS peer generates a new identity (public/private keypair) each time, and prints its public key to stdout. This is a deficiency in the demo; to be consistent with the Go code it should accept a private key on the CLI.) - If you return to the second, third or fourth terminals and type a message, the bootstrapper and the other 2 peers will all print your message.