Expand description
AeroSocket Server
High-performance WebSocket server implementation with enterprise features.
§Quick Start
use aerosocket_server::prelude::*;
#[tokio::main]
async fn main() -> aerosocket_core::Result<()> {
let server = Server::builder()
.bind("0.0.0.0:8080")?
.max_connections(10_000)
.build()?;
server.serve().await?;
Ok(())
}Re-exports§
pub use config::BackpressureConfig;pub use config::CompressionConfig;pub use config::ServerConfig;pub use config::TlsConfig;pub use connection::Connection;pub use connection::ConnectionHandle;pub use connection::ConnectionMetadata;pub use connection::ConnectionState;pub use error::ConfigError;pub use error::ConnectionError;pub use error::ContextError;pub use error::ContextResult;pub use error::ErrorContext;pub use error::HandlerError;pub use error::HandshakeError;pub use error::ManagerError;pub use error::ProtocolError;pub use error::ServerError;pub use error::TransportError;pub use handler::BoxedHandler;pub use handler::DefaultHandler;pub use handler::EchoHandler;pub use handler::Handler;pub use manager::CloseReason;pub use manager::ConnectionHealth;pub use manager::ConnectionManager;pub use manager::ManagerStats;pub use server::Server;pub use server::ServerBuilder;
Modules§
- config
- Server configuration
- connection
- WebSocket connection handling
- error
- Error handling and logging for the WebSocket server
- handler
- WebSocket connection handlers
- logging
- Logging utilities for the WebSocket server
- manager
- Connection manager for WebSocket server
- prelude
- Prelude module with common imports
- rate_
limit - Rate limiting and DoS protection for WebSocket server
- server
- WebSocket server implementation
- tcp_
transport - TCP transport implementation for the server
- tls_
transport - TLS transport implementation for WebSocket server