mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-04-28 04:34:08 +00:00
* Fix build issues in util package * Update eslint TS plugins * Scope react app package name * Convert cli package back to CJS and dynamically import ESM * Upgrade ts-node version * Fix tests |
||
|---|---|---|
| .. | ||
| 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 -
Run a local signalling server (skip if an already running signalling server is available):
# In packages/peer yarn signal-server -
Start the node:
# In packages/cli yarn chat --signalServer [SIGNAL_SERVER_URL]signalServer: multiaddr of a signalling server (default: local signalling server multiaddr)
-
The process starts reading from
stdinand outputs messages from others peers tostdout.