mirror of
https://github.com/rairyx/raven.git
synced 2024-11-11 19:10:50 +00:00
Updated README.md
This commit is contained in:
parent
273e386b0c
commit
b136958849
@ -52,7 +52,6 @@ cd pubsub
|
||||
|
||||
This peer, which is not in bootstrapper mode, creates a node, subscribes to the shared topic string, spawns the same go routine, and then loops forever requesting user input and publishing each line to the topic.
|
||||
|
||||
#TODO
|
||||
**Third terminal**: Create a JS peer to connect to bootstrap and publish on topic
|
||||
```
|
||||
cd pubsub/js
|
||||
@ -60,4 +59,10 @@ npm install # first time only
|
||||
node index.js /ip4/127.0.0.1/tcp/9876/ipfs/QmehVYruznbyDZuHBV4vEHESpDevMoAovET6aJ9oRuEzWa
|
||||
```
|
||||
|
||||
This JS peer will fire off a hello message every few seconds, which the other two subscribing nodes can see.
|
||||
|
||||
If you return to the second terminal and type a message, the bootstrapper and JS peers will both print that message.
|
||||
|
||||
In short, you have a chat app on a private libp2p network.
|
||||
|
||||
_Acknowledgements: @jhiesey for DHT (content & peer routing) JS+Go interop, @stebalien for PubSub_
|
||||
|
Loading…
Reference in New Issue
Block a user