social.colibri.sync.subscribeEvents

Opens a WebSocket stream that transmits relevant events for the authenticated user.

Repository @colibri.social did:plc:mprdjqjluoswa7awzggaggj3 not from the namespace authority
Details · subscription
Kindsubscription
Authoritysync.colibri.social
Indexed

Subscription

subscription · WebSocket

Messages

DAG-CBOR frames

lex:social.colibri.sync.subscribeEvents#ack

object

lex:social.colibri.sync.subscribeEvents#communityEvent

object

lex:social.colibri.sync.subscribeEvents#memberEvent

object

lex:social.colibri.sync.subscribeEvents#categoryEvent

object

lex:social.colibri.sync.subscribeEvents#channelEvent

object

lex:social.colibri.sync.subscribeEvents#messageEvent

object

lex:social.colibri.sync.subscribeEvents#reactionEvent

object

lex:social.colibri.sync.subscribeEvents#userEvent

object

lex:social.colibri.sync.subscribeEvents#typingEvent

object

lex:social.colibri.sync.subscribeEvents#voicePresenceEvent

object

lex:social.colibri.sync.subscribeEvents#voiceStateEvent

object

Errors

AuthRequired

Missing, malformed, or unverifiable service auth.

#ack

object

Sent in response to a heartbeat message.

Properties

type

requiredstring
  • const: "ack"

#categoryEvent

object

Sent when a category has been created, updated, or deleted.

Properties

data

requiredref
Reference
  • lex:social.colibri.sync.subscribeEvents#categoryEventData

type

requiredstring
  • const: "category_event"

#categoryEventData

object

Properties

itemsstring · at-uri

community

requiredstring · at-uri

event

requiredstring
  • knownValues: upsert | delete

name

string

uri

requiredstring · at-uri

#channelEvent

object

Sent when a channel has been created, updated, or deleted.

Properties

data

requiredref
Reference
  • lex:social.colibri.sync.subscribeEvents#channelEventData

type

requiredstring
  • const: "channel_event"

#channelEventData

object

Properties

category

string · at-uri

community

requiredstring · at-uri

event

requiredstring
  • knownValues: upsert | delete

name

string

type

string

uri

requiredstring · at-uri

#communityEvent

object

Sent when a community has been updated or deleted.

Properties

data

requiredref
Reference
  • lex:social.colibri.sync.subscribeEvents#communityEventData

type

requiredstring
  • const: "community_event"

#communityEventData

object

Properties

banner

blob
itemsstring · at-uri

event

requiredstring
  • knownValues: upsert | delete

name

string

uri

requiredstring · at-uri

#humEnvelope

object

An off-protocol event relayed between AppViews. The authenticated sender (inter-service auth JWT: aud = receiving AppView did:web, lxm = social.colibri.sync.sendHum) is the origin of record; `origin` is echoed for relay/loop control and MUST match the JWT issuer. Only off-protocol event types are permitted — on-protocol events are never carried by a Hum and are derived from the firehose instead.

Properties

community

requiredstring · at-uri

Community the event is scoped to. Receiver relays to local clients only if they are members of this community.

event

requiredunion

Ephemeral event payload. Only off-protocol types are permitted.

One of
  • lex:social.colibri.sync.subscribeEvents#userEvent
  • lex:social.colibri.sync.subscribeEvents#typingEvent
  • lex:social.colibri.sync.subscribeEvents#voicePresenceEvent
  • lex:social.colibri.sync.subscribeEvents#voiceStateEvent

id

requiredstring

Unique id for this Hum, used by receivers to dedup across relay paths.

  • maxLength: 64

origin

requiredstring · did

DID of the AppView that first emitted this Hum.

subject

requiredstring · did

The user this event is about. Receiver MUST verify origin equals subject's declared presenceService before trusting or relaying.

ttl

requiredinteger

Remaining relay hops. Decremented on each forward; a Hum at ttl 0 is delivered locally but never relayed.

  • minimum: 0
  • maximum: 8

#memberEvent

object

Sent when a member has joined or left a community.

Properties

data

requiredref
Reference
  • lex:social.colibri.sync.subscribeEvents#memberEventData

type

requiredstring
  • const: "member_event"

#memberEventData

object

Properties

community

requiredstring · at-uri

event

requiredstring
  • knownValues: join | leave | roles_updated

The affected member, hydrated. Present on `join` and `roles_updated`.

Reference
  • lex:social.colibri.sync.subscribeEvents#memberEventMember

memberDid

string · did

DID of the member who left. Present on `leave`.

membership

string · at-uri

#memberEventMember

object

The affected member as carried by a member event. Mirrors `social.colibri.community.defs#memberView`, including the member's current voice channel state so a receiving client can place them in a voice channel without refetching.

Properties

data

requiredref
Reference
  • lex:social.colibri.actor.defs#actorData

did

requiredstring · did

handle

requiredstring · handle

joinedAt

string · datetime

nickname

string

roles

requiredarray
itemsstring · at-uri

vc

string · at-uri

AT-URI of the voice channel the member is currently connected to, if any. Only set when that channel belongs to `community`.

vcDeafened

boolean

vcMuted

boolean

#messageEvent

object

Sent when a message has been sent, edited, or deleted.

Properties

data

requiredref
Reference
  • lex:social.colibri.sync.subscribeEvents#messageEventData

type

requiredstring
  • const: "message_event"

#messageEventData

object

Properties

itemsblob

channel

requiredstring · at-uri

createdAt

string · datetime

edited

boolean

event

requiredstring
  • knownValues: upsert | delete

facets

array
itemsref
Reference
  • lex:social.colibri.richtext.facet

indexedAt

string · datetime

live

boolean

parent

string · at-uri

text

string

uri

requiredstring · at-uri

#reactionEvent

object

Sent when a reaction has been added to or removed from a message.

Properties

data

requiredref
Reference
  • lex:social.colibri.sync.subscribeEvents#reactionEventData

type

requiredstring
  • const: "reaction_event"

#reactionEventData

object

Properties

channel

requiredstring · at-uri

emoji

requiredstring

event

requiredstring
  • knownValues: added | removed

target

requiredstring · at-uri

uri

requiredstring · at-uri

#typingEvent

object

Sent when a user is typing in a channel the client is viewing.

Properties

data

requiredref
Reference
  • lex:social.colibri.sync.subscribeEvents#typingEventData

type

requiredstring
  • const: "typing_event"

#typingEventData

object

Properties

channel

requiredstring · at-uri

did

requiredstring · did

event

requiredstring
  • knownValues: start | stop

#userEvent

object

Sent when a known user has updated their profile or Colibri status.

Properties

data

requiredref
Reference
  • lex:social.colibri.sync.subscribeEvents#userEventData

type

requiredstring
  • const: "user_event"

#userEventData

object

Properties

did

requiredstring · did

profile

requiredref
Reference
  • lex:social.colibri.sync.subscribeEvents#userProfile
Reference
  • lex:social.colibri.sync.subscribeEvents#userStatus

#userProfile

object

Properties

avatar

blob

banner

blob

handle

requiredstring · handle

#userStatus

object

Properties

emoji

string

state

requiredstring
  • knownValues: online | away | dnd | offline

text

requiredstring

#voicePresenceEvent

object

Sent when a user joins or leaves a voice channel.

Properties

data

requiredref
Reference
  • lex:social.colibri.sync.subscribeEvents#voicePresenceEventData

type

requiredstring
  • const: "voice_presence_event"

#voicePresenceEventData

object

Properties

channel

requiredstring · at-uri

did

requiredstring · did

event

requiredstring
  • knownValues: join | leave

#voiceStateEvent

object

Sent when a user's voice state changes within a voice channel. `muted` and `deafened` are the user's own choices; `serverMuted` and `serverDeafened` are moderator-applied and enforced by the SFU. Each field is absent when unchanged.

Properties

data

requiredref
Reference
  • lex:social.colibri.sync.subscribeEvents#voiceStateEventData

type

requiredstring
  • const: "voice_state_event"

#voiceStateEventData

object

Properties

channel

requiredstring · at-uri

deafened

boolean

did

requiredstring · did

muted

boolean

Similar lexicons

semantic match

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

  • Answers a heartbeat.

  • Live updates for one account over a WebSocket. Frames are JSON text, each an object tagged with $type. The client sends the social.colibri.beta.sync.defs frames subscribe, unsubscribe, heartbeat, typing, viewChannel, activity, wroteTo and setPresence. The connection is sent nothing for a community or channel it did not subscribe to.

  • social.colibri.sync.subscribeHums

    subscription not from the namespace authority

    Egress-only WebSocket stream of Hums this AppView is relaying. Peers subscribe to receive off-protocol events for shared communities, optionally narrowing to declared `communities` (repeated query param). Requires inter-service auth (subprotocol-carried, as with subscribeEvents). Clients cannot send messages on this stream.

  • Subscribe to stream of chat events targeted to moderation. Private endpoint.