WsForge Core
The foundational library for the WsForge WebSocket framework.
Overview
wsforge-core contains the core implementation of WsForge, including:
- Connection management and lifecycle
- Message handling and routing
- Type-safe extractors
- Handler traits and implementations
- State management
- Error types
- Static file serving
Usage
Note: Most users should use the main wsforge crate instead, which re-exports everything from wsforge-core and includes additional conveniences.
Direct Usage (Advanced)
If you need only the core functionality without macros:
[dependencies]
wsforge-core = "0.1.0"
tokio = { version = "1.40", features = ["full"] }
use *;
async
async
Documentation
Components
- connection: WebSocket connection management
- message: Message types and parsing
- handler: Handler traits and response types
- extractor: Type-safe data extraction
- router: Routing and server management
- state: Shared application state
- error: Error types and handling
- static_files: Static file serving
License
MIT - See LICENSE for details.
Related Crates
wsforge- Main crate (recommended for most users)wsforge-macros- Procedural macros