Axum WebSocket Specialist

0•

Implements high-performance real-time communication using Axum 0.8 WebSocket handlers and broadcast channels.

This skill provides specialized guidance for building robust real-time applications with Axum 0.8, streamlining the implementation of WebSocket upgrades, broadcast rooms using Tokio channels, and essential production features like heartbeat pings. It specifically addresses the Axum 0.8 transition by enforcing the correct use of byte-based message types and provides verification hooks to prevent common pitfalls like socket task leaks, unhandled receiver lag, and idle connection timeouts. Whether you are building a chat application, a live data feed, or a custom pub/sub system, this skill ensures your Rust backend handles concurrent real-time traffic with RFC-compliant reliability.

Key Features

01Implementation of Axum 0.8 WebSocketUpgrade routes with Utf8Bytes support
02Production-ready heartbeat/ping-pong keepalive logic to prevent proxy drops
03RFC 6455 compliant WebSocket close code and error handling
04Automated verification hooks to detect leaked socket tasks and anti-patterns
050 GitHub stars
06Broadcast room patterns using tokio::sync::broadcast for multi-client messaging

Use Cases

01Building multi-user chat applications or live financial data feeds
02Creating real-time pub/sub systems with shared application state
03Implementing backend-to-frontend live notifications and status updates