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. - InMem
Store - Local
Client - In-process client handle. Sends ops directly into the server under the shared state lock; receives events over a std mpsc channel.
- Server
Handle
Enums§
- Color
Selection Mode - Policy for assigning per-user colors on connect.
- Connect
Outcome - 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§
- Canvas
Store - Persistence boundary for the canonical canvas. In-memory by default; the late-sh integration plan describes a postgres-backed impl.