mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-03-29 04:49:23 +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
peer
package: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
stdin
and outputs messages from others peers tostdout
.