place.hud.getAppEvents

A published frame app's entries, live: an open stream of server-sent events (text/event-stream), one whenever HUD's index hears an entry of it (of kind, where given) written or deleted, at most one every 250 milliseconds, its writers' alone where the app names them. Each event's data is one JSON object, typed by its $type: #changedEvent (read its entries again, by listAppEntries). No entry is sent. HUD holds one stream of its index per app, shared by every page watching it; the stream ends when the index's does, or HUD stops, and a page reads by polling until it asks again. A comment, ping, comes every 25 seconds when nothing else does. No auth required; each address asks at most 120 times a minute, with listAppEntries, and holds at most 16 of these streams at once.

Details · query
Kindquery
Authorityhud.place
Commit rev3n3m2rupxlgju
Indexed
cid bafyreiamodgpjuiyucdc7azgcpm5roha7quj7jhhem6p7dqvksjecl4rzi

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "changedEvent": {
      "description": "An entry of the app's was written or deleted: read its entries again.",
      "properties": {
        "version": {
          "description": "The index's mark of what it holds of them once it was written. Opaque: it need not be the version listAppEntries answers.",
          "maxLength": 128,
          "type": "string"
        }
      },
      "required": [
        "version"
      ],
      "type": "object"
    },
    "main": {
      "description": "A published frame app's entries, live: an open stream of server-sent events (text/event-stream), one whenever HUD's index hears an entry of it (of kind, where given) written or deleted, at most one every 250 milliseconds, its writers' alone where the app names them. Each event's data is one JSON object, typed by its $type: #changedEvent (read its entries again, by listAppEntries). No entry is sent. HUD holds one stream of its index per app, shared by every page watching it; the stream ends when the index's does, or HUD stops, and a page reads by polling until it asks again. A comment, ping, comes every 25 seconds when nothing else does. No auth required; each address asks at most 120 times a minute, with listAppEntries, and holds at most 16 of these streams at once.",
      "errors": [
        {
          "description": "HUD has no frame app of this id, or it has no kind of entry so named.",
          "name": "NotFound"
        },
        {
          "description": "The params are not what the method takes: no app, among others.",
          "name": "InvalidRequest"
        },
        {
          "description": "This address asked too often in the last minute: ask again in a minute.",
          "name": "RateLimitExceeded"
        },
        {
          "description": "This address holds as many of these streams as it may, HUD hears as many apps as it may, or it is stopping: read by polling.",
          "name": "LimitReached"
        },
        {
          "description": "This server names no index (HUD_INDEX) to hear entries from.",
          "name": "IndexUnavailable"
        },
        {
          "description": "The index refused, or could not be reached: read by polling.",
          "name": "UpstreamFailure"
        }
      ],
      "output": {
        "encoding": "text/event-stream"
      },
      "parameters": {
        "properties": {
          "app": {
            "description": "The app's place.hud.app record.",
            "format": "at-uri",
            "type": "string"
          },
          "kind": {
            "description": "Which of its kinds of entry alone; all of them where absent.",
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "app"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "A frame app's entries' changes, as server-sent events.",
  "id": "place.hud.getAppEvents",
  "lexicon": 1
}