mirror of https://github.com/waku-org/js-waku.git
e6d3c2f595
Active relay peers are peer which are part of the gossip mesh. Which means that it's not just a peer we are connect to but a peer on subscribed to the same pubsub topic, with a good score, part of the mesh, etc. Mesh maintenance is done during the gossipsub hearbeat so it's the best time to review the count. A store peer is any peer we are connected to that support the store protocol, so it can be counted when a new peer is added to the store. This does not cater for store peers that disconnect, but we are not handling those just yet. |
||
---|---|---|
.. | ||
config | ||
public | ||
src | ||
.env | ||
.gitignore | ||
.prettierignore | ||
README.md | ||
buf.gen.yaml | ||
buf.yaml | ||
package-lock.json | ||
package.json | ||
tsconfig.json |
README.md
Web Chat App
Demonstrates:
- Group chat
- React/TypeScript
- Waku Relay
- Waku Store
A ReactJS chat app is provided as a showcase of the library used in the browser. It implements Waku v2 Toy Chat protocol. A deployed version is available at https://js-waku.wakuconnect.dev/examples/web-chat/.
To run a development version locally, do:
git clone https://github.com/status-im/js-waku/ ; cd js-waku
npm install # Install dependencies for js-waku
npm run build # Build js-waku
cd examples/web-chat
npm install # Install dependencies for the web app
npm run start # Start development server to serve the web app on http://localhost:3000/js-waku
Use /help
to see the available commands.