| Crates.io | reinhardt-websockets |
| lib.rs | reinhardt-websockets |
| version | 0.1.0-alpha.1 |
| created_at | 2026-01-23 10:14:42.673553+00 |
| updated_at | 2026-01-23 10:14:42.673553+00 |
| description | WebSocket support for real-time bidirectional communication |
| homepage | |
| repository | https://github.com/kent8192/reinhardt-rs |
| max_upload_size | |
| id | 2064028 |
| size | 405,596 |
WebSocket support for the Reinhardt framework.
WebSocket protocol support for real-time bidirectional communication. Includes connection management, message routing, room management, and WebSocket handler traits for building interactive applications.
Add reinhardt to your Cargo.toml:
[dependencies]
reinhardt = { version = "0.1.0-alpha.1", features = ["websockets"] }
# Or use a preset:
# reinhardt = { version = "0.1.0-alpha.1", features = ["standard"] } # Recommended
# reinhardt = { version = "0.1.0-alpha.1", features = ["full"] } # All features
Then import WebSocket features:
use reinhardt::websockets::{WebSocketConnection, WebSocketHandler, Message};
use reinhardt::websockets::{RoomManager, WebSocketMessage};
Note: WebSocket features are included in the standard and full feature presets.
WebSocketConnection: Manages individual WebSocket connections
WebSocketError and WebSocketResult: Comprehensive error handling
Message enum: Multiple message types support
WebSocketMessage struct: Structured message format with timestamps
RoomManager: Multi-client room management
WebSocketHandler: Trait for implementing custom WebSocket handlers
on_message: Handle incoming messageson_connect: Handle new connectionson_disconnect: Handle disconnections