place.hud.getWorkspaceEvents
The person's workspace, live: an open stream of server-sent events (text/event-stream), one covering every canvas they have open as a tab, which follows the tabs as they open and close. Each event's data is one JSON object, typed by its $type: place.hud.defs#tileEvent (a tile of an open canvas changed), #presenceEvent (who is on an open canvas: first for each as the stream opens, then as people come and go) or #canvasesEvent (the workspace changed: read getWorkspace again). A comment, ping, comes every 25 seconds when nothing else does. It is a query, not an XRPC subscription: subscriptions are WebSocket with DAG-CBOR frames, sequenced for backfill from a cursor, and this keeps no history to backfill from (what happened while no stream was open is read again from getWorkspace and getCanvas), while a browser's EventSource sends the session's cookie and reconnects by itself. It ends when the session does, or when the reader falls too far behind: connect again and read afresh. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin on a procedure) or a HUD access token as Bearer.
Details · query
| Kind | query |
|---|---|
| Authority | hud.place |
| Commit rev | 3n3jbjeejz3ju |
| Indexed |
Query
query · GETOutput
text/event-streamErrors
AuthRequired
No live web session or HUD access token: sign in.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
place.hud.getWorkspace
queryThe signed-in person's workspace.
-
A chat's answer as the model writes it, as server-sent events.
-
A private instance's changes, as server-sent events.
-
A canvas and its tiles.
-
The canvases a person sees.