mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-05-09 00:34:07 +00:00
557 B
557 B
cli
chat
A basic CLI to pass messages between peers using stdin/stdout
-
Install dependencies:
yarn install -
Build the
peerpackage:cd packages/peer yarn build -
(Optional) Run a local relay node:
# In packages/peer yarn relay-node -
Start the node:
# In packages/cli yarn chat --relay-node <RELAY_NODE_URL>relay-node: multiaddr of a hop enabled relay node
-
The process starts reading from
stdinand outputs messages from others peers tostdout.