mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-10-28 19:14:08 +00:00
| .. | ||
| src | ||
| .eslintignore | ||
| .eslintrc.json | ||
| .npmignore | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
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.