What problem does it solve?
Adds reliable realtime WebSocket capabilities to Python backends and connects them to lightweight Svelte or React frontends so teams can deliver live dashboards, chats, and streaming UIs without rearchitecting their app.
Core Features & Use Cases
- Connection lifecycle and ConnectionManager patterns for safe accept, broadcast, and cleanup of WebSocket clients.
- Background push loops, snapshot + delta protocols, reconnection/backoff strategies, heartbeat/ping handling, and CORS/static serving guidance for development and production.
- Frontend-ready patterns and examples for Svelte and React including WebSocket hooks/stores, animated entry/FLIP animations, animated counters, and performance rules for high-frequency updates.
- Security and testing checklist: authentication on connect, rate limiting, Pydantic validation, TLS best practices, and FastAPI test client examples.
Quick Start
Add a WebSocket endpoint to your FastAPI app at /ws/live, implement a ConnectionManager with connect/disconnect/broadcast, and connect a Svelte or React client using the provided WebSocket store or hook to receive JSON messages.