Ivan FB 247f740f1d
docs: add simple README.md for all examples (#111)
Co-authored-by: richΛrd <info@richardramos.me>
2025-01-20 16:15:45 +01:00

513 B

Description

This is a chat example where multiple participants can talk within the same room.

What it does

  1. Instantiates one Waku node
  2. Starts the Waku node
  3. Registers the node to waku events (messages, connection change, topic health, etc.)
  4. Subscribes de node to the game_topic
  5. Retrieves previous chat messages at the beginning

How to run

From within the examples/toy-chat/ folder, run the following to start a chat using the given nick name.

e.g.:

cargo run "Alice"