Package-level declarations
Types
Thrown by gameHost when another peer on the same session has already declared itself host.
Lobby presence over seam, backed by an EphemeralMap replicated by Quilter.
A running game session: the consensus node plus any named application channels riding the same fabric.
Thrown by gameJoin when the host signals that admission is closed and this peer is not in the final voter set.
Thrown by gameSpectate when the host never signals spectator admission or rejection within the gameSpectate spectateAdmissionTimeout bound.
Thrown by gameSpectate when the host's spectator gallery is closed — either because the host did not enable spectators (allowSpectators = false, the default) or because maxSpectators has already been reached.
Consumer-owned description of a deterministic turn-based game, used by SpeculativeSequencer to apply, snapshot, and restore game state.
A wrapper over TurnSequencer that applies local actions optimistically before their committed index arrives, then rolls back and replays if the committed order differs from what was predicted.
One instruction in a TurnSequencer's in-order TurnSequencer.events stream.
A game-developer-friendly facade over RaftNode.
Functions
Host a game session over seam: check for duplicate hosts, bootstrap a singleton-voter cluster, then admit each connecting peer as learner→voter until the cluster reaches the returnAt watermark, then returns a GameSession whose GameSession.node is the leader.
Join a game session over seam hosted by exactly one gameHost. Starts as a non-voting learner and waits until the host admits this peer as a voter. Returns the local GameSession (its GameSession.node is the admitted follower) once admitted.
Constructs a RaftNode over seam for a session whose full voter roster is already known to every peer (e.g. from matchmaking). Every peer builds the identical ClusterConfig.ofVoters and Raft's own election picks the leader — symmetric, no pre-Raft coordination step required.
Join a game session over seam as a permanent, non-voting spectator learner.