games.cavu.subscribeSession
Bidirectional game session. Server->client messages are below; client->server frames are games.cavu.clientFrame.
Details · subscription
| Kind | subscription |
|---|---|
| Authority | cavu.games |
| Indexed |
Showing version bafyreig2c2okzpvrqikokz53s5j4xisdeytv5mlteq4cifwdddabay27fm. Show the latest
Subscription
subscription · WebSocketParameters
query stringMessages
DAG-CBOR frames#snapshot
objectThis 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
objectThis viewer's projection of the room state: project(state, viewer). Sent on join and whenever it changes. Never contains other players' secrets.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
games.cavu.clientFrame
objectFrames a client sends up the games.cavu.subscribeSession socket (DAG-CBOR event-stream framing: header {op:1, t:'#join'|'#intent'|'#ping'} + body).
-
games.cavu.tier-madness.subscribeGame
subscriptionA 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.