Stream Chat icon

Stream Chat

Server-side Stream Chat operations

Channel → Watch

AI-generated

Summary

Subscribe to real-time updates for a specified Stream Chat channel by channel type and channel ID.

Inputs

  • Channel Type — Specify the type of channel to watch, such as 'messaging' for 1-on-1 chats, 'team' for group channels, or 'livestream' for broadcast channels. Defaults to 'messaging'.
  • Channel ID (required) — Provide the unique identifier of the channel to watch (e.g., 'general', 'random', 'team-alpha'). Combined with the channel type to form the full channel identifier (CID).

Output shape

A JSON object representing the channel's current state including members, messages, and metadata, reflecting real-time changes as they occur.

The output includes live updates from the specified channel after subscribing; this enables workflows to react to channel modifications instantly.

Discussion