RustAPI WebSocket
Real-time bidirectional communication made simple.
Built on tokio-tungstenite, this crate provides a first-class WebSocket extractor for RustAPI.
Usage
use ;
async
async
Features
- Auto-Upgrade: Handles the HTTP 101 Switching Protocols handshake.
- Channels: Built-in pub/sub for broadcast scenarios (chat rooms).
- Ping/Pong: Automatic heartbeat management.