This skill provides a comprehensive framework for building real-time, bidirectional communication features in Python web applications. It focuses on a production-grade approach, emphasizing explicit connection lifecycles, centralized state management via a Connection Manager, and structured message contracts. By abstracting the complexities of asynchronous receive loops and room-based routing, it enables developers to implement features like live chats, collaborative editing, and real-time dashboards while ensuring defensive error handling, memory safety, and predictable system behavior.
Características Principales
01Logical room-based routing for targeted message broadcasting
02Defensive receive loop patterns for graceful disconnection handling
030 GitHub stars
04Eager cleanup mechanisms to prevent socket-related memory leaks
05Standardized JSON message protocols with Pydantic model integration
06Centralized Connection Manager for tracking active sockets and state