What problem does it solve? Building realtime features in Litestar requires choosing between plain WebSockets, SSE, and the Channels plugin, wiring authentication that works without HTTP headers, and publishing typed events across processes from workers or scripts. This Skill provides the patterns, guardrails, and reference implementations for that entire realtime stack. ## Core Features & Use Cases - Transport Selection Guidance: Decision matrix for plain WebSocket handlers versus the Channels plugin, plus backend selection across Memory, Redis, sqlspec PostgreSQL LISTEN/NOTIFY, and advanced-alchemy backends. - Typed Event Contracts: Canonical RealtimeEvent envelope with scope-based ACLs (workspace, user, global), channel naming factories, and a RealtimePublisher abstraction with graceful no-op when the backend is uninitialized. - WebSocket Auth & Lifecycle: Query-param JWT authentication guards, multi-tenant membership checks, Dishka request-scope handling, and a stream_pubsub subscriber with idempotency deduplication and per-session metrics. - Use Case: A SAQ background worker finishes an ETL job and needs to notify connected browsers. Use this Skill to publish a typed workspace-scoped event through the shared Channels backend so subscribed WebSocket clients receive the update in real time. ## Quick Start Ask the assistant to implement a Litestar WebSocket endpoint that streams workspace events using the Channels plugin with token-based authentication.