games.cavu.subscribeSession

Bidirectional game session. Server->client messages are below; client->server frames are games.cavu.clientFrame.

Repository @pardy.at did:plc:dp7v5b5kejmmzzpwmqyf5wj6 namespace authority
Details · subscription
Kindsubscription
Authoritycavu.games
Indexed

Showing version bafyreig2c2okzpvrqikokz53s5j4xisdeytv5mlteq4cifwdddabay27fm. Show the latest

Subscription

subscription · WebSocket

Parameters

query string

Messages

DAG-CBOR frames

#snapshot

object

This viewer's projection of the room state: project(state, viewer). Sent on join and whenever it changes. Never contains other players' secrets.

Errors

UnknownGame

No description in schema.

InvalidJoin

No description in schema.

RoomInitFailed

No description in schema.

ReduceFailed

No description in schema.

InvalidFrame

No description in schema.

UnknownFrame

No description in schema.

#snapshot

object

This viewer's projection of the room state: project(state, viewer). Sent on join and whenever it changes. Never contains other players' secrets.

Properties

ack

requiredinteger

Highest intent seq from this viewer that the state reflects.

  • minimum: 0

view

requiredunknown

Typed by the game: games.cavu.<game>.defs#view.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Frames a client sends up the games.cavu.subscribeSession socket (DAG-CBOR event-stream framing: header {op:1, t:'#join'|'#intent'|'#ping'} + body).

  • A game's live channel. The socket is bidirectional: the client sends games.cavu.tier-madness.clientFrame frames (#auth then #create/#join to play, or just #spectate to watch); the server sends a #snapshot of the game as that viewer may see it whenever it changes.