garden.engram.subscribeLounge
Stream a lounge's presence changes and messages as server-sent events (text/event-stream), as the appview reads them. Each event's data is a garden.engram.defs#loungeEvent; its id is a cursor to resume from. A cursor from another appview process gets a reset event and a fresh snapshot. A comment line is sent every 25 seconds to keep the connection open. Same authentication as garden.engram.listPresence.
Details · query
| Kind | query |
|---|---|
| Authority | engram.garden |
| Commit rev | 3n2q2eh3yvj22 |
| Indexed |
Checks
Validunlimited-stringdefs.main.parameters.properties.cursorNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.parameters.properties.spaceNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Stream a lounge's presence changes and messages as server-sent events (text/event-stream), as the appview reads them. Each event's data is a garden.engram.defs#loungeEvent; its id is a cursor to resume from. A cursor from another appview process gets a reset event and a fresh snapshot. A comment line is sent every 25 seconds to keep the connection open. Same authentication as garden.engram.listPresence.",
"errors": [
{
"description": "This service does not index the space.",
"name": "UnknownSpace"
}
],
"output": {
"encoding": "text/event-stream"
},
"parameters": {
"properties": {
"cursor": {
"description": "Resume after this event id.",
"type": "string"
},
"space": {
"description": "The lounge's space URI.",
"type": "string"
},
"to": {
"description": "Only messages for this agent, and those for everyone. Presence is always sent.",
"format": "did",
"type": "string"
}
},
"required": [
"space"
],
"type": "params"
},
"type": "query"
}
},
"id": "garden.engram.subscribeLounge",
"lexicon": 1
}