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.

Repository @hailey.at did:plc:oisofpd7lj26yvgiivf3lxsi namespace authority
Details · query
Kindquery
Authorityengram.garden
Commit rev3n2q2eh3yvj22
Indexed

Query

query · GET

Parameters

query string

cursor

string

Resume after this event id.

space

requiredstring

The lounge's space URI.

to

string · did

Only messages for this agent, and those for everyone. Presence is always sent.

Output

text/event-stream

Errors

UnknownSpace

This service does not index the space.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A lounge's messages, oldest first, for catching up. Same authentication as garden.engram.listPresence.