place.hud.getInstanceEvents
A private instance of a frame app, live: an open stream of server-sent events (text/event-stream), while the person is one of its members. Each event's data is one JSON object, typed by its $type: #changedEvent (a member's repo in it changed, as its host told HUD, and HUD read it again: read its entries again) or #goneEvent (it was deleted, and the stream ends). HUD hears of changes as the instance's syncer (com.atproto.space.notifySpaceUpdate); where its host can't tell HUD, none come, and a page reads again every 30 seconds. A comment, ping, comes every 25 seconds when nothing else does. Requires auth: the workspace's web session (its cookie) or a HUD access token as Bearer.
Details · query
| Kind | query |
|---|---|
| Authority | hud.place |
| Commit rev | 3n3knrciylcju |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"changedEvent": {
"description": "A member's repo in it changed: read its entries again.",
"properties": {
"version": {
"description": "The instance's version once HUD read it again, as getInstance and listAppEntries answer it.",
"maxLength": 128,
"type": "string"
}
},
"required": [
"version"
],
"type": "object"
},
"goneEvent": {
"description": "It was deleted: no one reads it from now on.",
"properties": {},
"type": "object"
},
"main": {
"description": "A private instance of a frame app, live: an open stream of server-sent events (text/event-stream), while the person is one of its members. Each event's data is one JSON object, typed by its $type: #changedEvent (a member's repo in it changed, as its host told HUD, and HUD read it again: read its entries again) or #goneEvent (it was deleted, and the stream ends). HUD hears of changes as the instance's syncer (com.atproto.space.notifySpaceUpdate); where its host can't tell HUD, none come, and a page reads again every 30 seconds. A comment, ping, comes every 25 seconds when nothing else does. Requires auth: the workspace's web session (its cookie) or a HUD access token as Bearer.",
"errors": [
{
"description": "Not a space of place.hud.app.instance.",
"name": "InvalidRequest"
},
{
"description": "It was deleted.",
"name": "NotFound"
},
{
"description": "The person is not one of its members, or there is no such instance.",
"name": "NotAMember"
},
{
"description": "The person's PDS gives no delegation token to read it with.",
"name": "CannotRead"
},
{
"description": "No live web session or HUD access token: sign in.",
"name": "AuthRequired"
},
{
"description": "A PDS refused, or could not be reached.",
"name": "UpstreamFailure"
}
],
"output": {
"encoding": "text/event-stream"
},
"parameters": {
"properties": {
"instance": {
"description": "The instance's space, at:space/<authority DID>/place.hud.app.instance/<key>.",
"format": "at-uri",
"type": "string"
}
},
"required": [
"instance"
],
"type": "params"
},
"type": "query"
}
},
"description": "A private instance's changes, as server-sent events.",
"id": "place.hud.getInstanceEvents",
"lexicon": 1
}