Skip to main content

Module hosting

Module hosting 

Source
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 rooms
  • Client — 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§

handlers

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.
RoomChannels
Channels for room lifecycle coordination.
RoomHandle
Handle to communicate with a running room. Stores channel endpoints for bridging WebSocket to Client player.