Expand description
WebSocket game hosting infrastructure.
This module provides the server-side machinery for hosting live poker games over WebSocket connections, managing room lifecycles and client sessions.
§Core Types
Casino— Central registry of active game roomsClient— WebSocket connection state for a connected player- [
Handle] — Room reference for client interactions
§HTTP Handlers
The handlers submodule exposes actix-web routes for room management:
start, enter, and leave operations.
Modules§
Structs§
- Casino
- Manages active game rooms and their lifecycles.
- Client
- Network player that communicates via tokio channels. Designed to bridge WebSocket connections to the Room actor system.
- Room
Channels - Channels for room lifecycle coordination.
- Room
Handle - Handle to communicate with a running room. Stores channel endpoints for bridging WebSocket to Client player.