js-waku/examples/web-chat
Franck Royer e6d3c2f595
Improve count of relay peers
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.
2022-02-28 17:23:30 +11:00
..
config Remove odd prettier config (#500) 2022-02-04 14:12:00 +11:00
public Revert naming to js-waku 2021-05-13 20:27:38 +10:00
src Improve count of relay peers 2022-02-28 17:23:30 +11:00
.env Remove ReactJS warning about webpack 2021-10-12 11:43:29 +11:00
.gitignore Move web-chat to examples folder 2021-05-05 16:35:14 +10:00
.prettierignore Move web-chat to examples folder 2021-05-05 16:35:14 +10:00
README.md Examples are now deployed in wakuconnect.dev (#485) 2022-02-02 11:56:40 +11:00
buf.gen.yaml `ChatMessage` has been moved from js-waku to web-chat example 2021-08-06 17:25:12 +10:00
buf.yaml `ChatMessage` has been moved from js-waku to web-chat example 2021-08-06 17:25:12 +10:00
package-lock.json Bump @types/node from 17.0.16 to 17.0.17 in /examples/web-chat (#512) 2022-02-14 14:58:54 +11:00
package.json Bump @types/node from 17.0.16 to 17.0.17 in /examples/web-chat (#512) 2022-02-14 14:58:54 +11:00
tsconfig.json Upgrade few dependencies 2022-01-06 17:39:08 +11:00

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.