On this page

Channel object

The Channel object represents a single chat room where users can send and receive messages.

Properties

The Channel object has the following properties:

ParameterDescription
Id
Type: FString
Unique identifier for the channel. Verify the channel ID with our validator. Access using GetChannelID().
ChannelData
Type: FPubnubChatChannelData
Additional data. Access using GetChannelData().
 → ChannelName
Type: FString
Display name for the channel (must not be empty or consist only of whitespace characters).
 → Description
Type: FString
Brief description or summary of the channel's purpose or content.
 → Custom
Type: FString
JSON providing custom data about the channel. Values must be scalar only; arrays or objects are not supported. Filtering App Context data through the custom property is not recommended in SDKs.
 → Status
Type: FString
Tag that lets you categorize your app channels by their current state. The tag choice is entirely up to you and depends on your use case. Maximum length is 50 characters.
 → Type
Type: FString
Tag that lets you categorize your app channels by their functional roles. The tag choice is entirely up to you and depends on your use case. Maximum length is 50 characters.
API limits

To learn about the maximum length of parameters used to set channel metadata, refer to REST API docs.

Methods

You can call the following methods on the Channel object.

Click on each method for more details.

Streaming

Call these methods to subscribe to or unsubscribe from real-time events on this Channel object.

Use case

Use the Channel object methods to:

Last updated on