Realtime Event Demo

A client-only event stream that behaves like a WebSocket without requiring a backend.

Controls

Status: disconnected

This simulates a WebSocket message stream. The “connection” is just an interval.

Event log

No events yet.

What problem it solves

Demonstrates event handling patterns: connection state, message parsing, and a simple log UI.

Technical explanation

A small in-memory “socket” emits events on an interval. The UI subscribes/unsubscribes safely and keeps a bounded log.

Limitations

No real network, reconnect logic is simplified, and ordering is guaranteed because everything is local.