Tutorials

Tutorials#

Two complete, runnable programs. Both live in the examples directory. The test suite runs them and compares what they print with the output shown on their pages, so their code always works with the current version.

  • In-memory application: a chat room where users subscribe, receive private and broadcast messages, and leave. Everything lives in the current process.

  • Persistence with a custom KvStorage: the same building blocks, persisted with SQLite, so channels, listeners and pending messages survive a restart.