axum-websocket

Community

Add real-time WebSocket support to Axum apps.

Authoradelabdelgawad
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Implement robust WebSocket handling in Axum 0.8, standardizing Message types, broadcasting, and heartbeat management to reduce boilerplate and errors.

Core Features & Use Cases

  • Basic upgrade with correct Message type usage (Utf8Bytes/Text vs Binary)
  • Stateful connections with per-connection AppState
  • Broadcast rooms using tokio::sync::broadcast for multi-client live feeds
  • Heartbeat and close-code handling to maintain healthy connections
  • Use Cases: chat, live dashboards, pub/sub-style real-time updates in Axum

Quick Start

Add a WebSocket route to your Axum app and wire a handler that supports text and binary frames with heartbeat, broadcasting, and proper close-code handling.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: axum-websocket
Download link: https://github.com/adelabdelgawad/rust-fullstack-agents/archive/main.zip#axum-websocket

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.