PubNub icon

PubNub

Interact with PubNub real-time messaging platform

Channel Group → Add Channels

AI-generated

Summary

Adds the specified channels to a PubNub channel group.

Inputs

  • channelGroup (required) — Name of the channel group
  • channels (required) — Comma-separated list of channel names to add

Output shape

object

Returns the PubNub API response from the addChannels endpoint (status and any returned data).

Examples

Example 1: Add channels 'news' and 'sports' to group 'alerts'

channelGroup='alerts', channels='news,sports' → PubNub addChannels request executed

Discussion