Skip to main content

Module server

Module server 

Source
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
ServerConfig
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)