Skip to main content

Crate dartboard_server

Crate dartboard_server 

Source
Expand description

WebSocket transport wrapper for dartboard_local.

Consumers that only need the in-process server and local client can depend on dartboard-local directly. This crate keeps the websocket listener and headless dartboardd binary while preserving the existing ServerHandle convenience surface for ws-hosting callers.

Structs§

Hello
Introductory payload a client sends before any ops. Name is echoed back to peers; color is a transport-level hint and may be replaced by the server’s configured ColorSelectionMode.
InMemStore
LocalClient
In-process client handle. Sends ops directly into the server under the shared state lock; receives events over a std mpsc channel.
ServerHandle

Enums§

ColorSelectionMode
Policy for assigning per-user colors on connect.
ConnectOutcome
Outcome of a connect attempt. Rejected connections leave no registered state on the server.

Constants§

MAX_PLAYERS
Max concurrent players on a single shared canvas. Equal to the palette length so the seat cap preserves unique per-user colors.

Traits§

CanvasStore
Persistence boundary for the canonical canvas. In-memory by default; the late-sh integration plan describes a postgres-backed impl.