Expand description
WebSocket server implementation
This module provides a comprehensive WebSocket server with:
- Connection management and pooling
- Heartbeat/ping-pong mechanism
- Connection lifecycle management
- Backpressure handling
Re-exports§
pub use connection::Connection;pub use connection::ConnectionId;pub use connection::ConnectionState;pub use heartbeat::HeartbeatConfig;pub use heartbeat::HeartbeatMonitor;pub use manager::ConnectionManager;pub use manager::ConnectionStats;pub use pool::ConnectionPool;pub use pool::PoolConfig;pub use pool::PoolStats;
Modules§
- connection
- WebSocket connection management
- heartbeat
- Heartbeat monitoring for WebSocket connections
- manager
- Connection manager for WebSocket server
- pool
- Connection pooling for WebSocket server
Structs§
- Server
- WebSocket server
- Server
Config - Server configuration
Constants§
- DEFAULT_
CONNECTION_ TIMEOUT_ SECS - Default connection timeout in seconds
- DEFAULT_
HEARTBEAT_ INTERVAL_ SECS - Default heartbeat interval in seconds
- DEFAULT_
HEARTBEAT_ TIMEOUT_ SECS - Default heartbeat timeout in seconds
- DEFAULT_
MAX_ CONNECTIONS - Default maximum number of connections
- DEFAULT_
MAX_ MESSAGE_ SIZE - Default maximum message size (16MB)