# social.colibri.beta.sync.subscribeEvents

> 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.

- Kind: subscription
- Authority: sync.beta.colibri.social
- Lexicon: 1
- Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.sync.subscribeEvents)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.sync.subscribeEvents/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.sync.subscribeEvents/analytics)

## Subscription (`social.colibri.beta.sync.subscribeEvents`)

Type: subscription · WebSocket

### Parameters (query string)

- `auth` (string): Service auth token with lxm social.colibri.beta.sync.subscribeEvents, for clients that can't set an Authorization header on a WebSocket.

### Messages (DAG-CBOR frames)

- `social.colibri.beta.sync.defs#ack` (object)
- `social.colibri.beta.sync.defs#error` (object)
- `social.colibri.beta.sync.defs#subscribed` (object)
- `social.colibri.beta.sync.defs#messageEvent` (object)
- `social.colibri.beta.sync.defs#reactionEvent` (object)
- `social.colibri.beta.sync.defs#channelEvent` (object)
- `social.colibri.beta.sync.defs#threadEvent` (object)
- `social.colibri.beta.sync.defs#categoryEvent` (object)
- `social.colibri.beta.sync.defs#roleEvent` (object)
- `social.colibri.beta.sync.defs#memberEvent` (object)
- `social.colibri.beta.sync.defs#communityEvent` (object)
- `social.colibri.beta.sync.defs#applicationEvent` (object)
- `social.colibri.beta.sync.defs#invitationEvent` (object)
- `social.colibri.beta.sync.defs#emojiEvent` (object)
- `social.colibri.beta.sync.defs#emojiLibraryEvent` (object)
- `social.colibri.beta.sync.defs#labelEvent` (object)
- `social.colibri.beta.sync.defs#moderationEvent` (object)
- `social.colibri.beta.sync.defs#notificationEvent` (object)
- `social.colibri.beta.sync.defs#seenEvent` (object)
- `social.colibri.beta.sync.defs#readCursorEvent` (object)
- `social.colibri.beta.sync.defs#presenceEvent` (object)
- `social.colibri.beta.sync.defs#preferencesEvent` (object)
- `social.colibri.beta.sync.defs#typingEvent` (object)
- `social.colibri.beta.sync.defs#voiceEvent` (object)
- `social.colibri.beta.sync.defs#communityProgressEvent` (object)
- `social.colibri.beta.sync.defs#bridgeEvent` (object)
- `social.colibri.beta.sync.defs#drainNotice` (object)
- `social.colibri.beta.sync.defs#writeState` (object)

### Errors

- `AuthRequired`: The upgrade request has no valid service auth. Answered with HTTP 401 before the WebSocket opens.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "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.",
      "errors": [
        {
          "description": "The upgrade request has no valid service auth. Answered with HTTP 401 before the WebSocket opens.",
          "name": "AuthRequired"
        }
      ],
      "message": {
        "schema": {
          "refs": [
            "social.colibri.beta.sync.defs#ack",
            "social.colibri.beta.sync.defs#error",
            "social.colibri.beta.sync.defs#subscribed",
            "social.colibri.beta.sync.defs#messageEvent",
            "social.colibri.beta.sync.defs#reactionEvent",
            "social.colibri.beta.sync.defs#channelEvent",
            "social.colibri.beta.sync.defs#threadEvent",
            "social.colibri.beta.sync.defs#categoryEvent",
            "social.colibri.beta.sync.defs#roleEvent",
            "social.colibri.beta.sync.defs#memberEvent",
            "social.colibri.beta.sync.defs#communityEvent",
            "social.colibri.beta.sync.defs#applicationEvent",
            "social.colibri.beta.sync.defs#invitationEvent",
            "social.colibri.beta.sync.defs#emojiEvent",
            "social.colibri.beta.sync.defs#emojiLibraryEvent",
            "social.colibri.beta.sync.defs#labelEvent",
            "social.colibri.beta.sync.defs#moderationEvent",
            "social.colibri.beta.sync.defs#notificationEvent",
            "social.colibri.beta.sync.defs#seenEvent",
            "social.colibri.beta.sync.defs#readCursorEvent",
            "social.colibri.beta.sync.defs#presenceEvent",
            "social.colibri.beta.sync.defs#preferencesEvent",
            "social.colibri.beta.sync.defs#typingEvent",
            "social.colibri.beta.sync.defs#voiceEvent",
            "social.colibri.beta.sync.defs#communityProgressEvent",
            "social.colibri.beta.sync.defs#bridgeEvent",
            "social.colibri.beta.sync.defs#drainNotice",
            "social.colibri.beta.sync.defs#writeState"
          ],
          "type": "union"
        }
      },
      "parameters": {
        "properties": {
          "auth": {
            "description": "Service auth token with lxm social.colibri.beta.sync.subscribeEvents, for clients that can't set an Authorization header on a WebSocket.",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "subscription"
    }
  },
  "id": "social.colibri.beta.sync.subscribeEvents",
  "lexicon": 1
}
```
