What problem does it solve?
This Skill solves the problem of implementing reliable real-time features in Rails apps by providing proven Action Cable channel and client patterns for authenticated connections, authorized subscriptions, and server-to-client broadcasts.
Core Features & Use Cases
- Connection authentication: Secure websocket connections by tying the socket identity to a verified user session token.
- Channel patterns for common realtime needs: Notifications, event-driven resource updates, and authenticated chat with presence/typing signals.
- Broadcasting and integration points: Server-to-client broadcasting from services and models, plus compatibility patterns for Turbo Streams.
- Testing and performance guardrails: Channel tests with authorization coverage and a checklist for connection/error handling and broadcast limits.
Quick Start
Configure Action Cable (async for development, Redis for production), implement an authenticated connection, then create the appropriate channel(s) (notifications, events, or chat) and subscribe from the corresponding JavaScript client.