Skip to main content
Subscription types represent the payloads received when subscribing to real-time updates via WebSocket.

ContentUpdate

Payload for content subscription updates.

Handling ContentUpdate

ComponentUpdate

The schema defines this type, but no subscription field returns it.

PackageUpdate

The schema defines this type, but no subscription field returns it.

PreviewUpdate

Payload for preview subscription updates.

PreviewResult Union

ComponentPreview

Preview data for a component.

ContentPreview

Preview data for content.

Handling Preview Updates

100KB Payload Limit

AWS WebSocket has a payload limit. When data exceeds 100KB:
  1. The content or component field will be null
  2. The resolvedRef field is always included
  3. Use the ID to fetch the full data separately