On this page

ThreadChannel object

ThreadChannel represents a single thread (channel) in a chat.

Properties​

The ThreadChannel object extends the Channel object, so it takes its properties. It also has:

ParameterDescription
ParentChannelId
Type: FString
Unique identifier of the main channel on which you create a subchannel (thread channel) and thread messages.

Methods​

You can call the following methods on the ThreadChannel object.

Click on each method for more details.

Streaming​

Inherits all Channel streaming methods.

To receive new messages posted to a thread, bind to OnThreadMessageReceived (type FOnPubnubChatThreadMessageReceived, parameter UPubnubChatThreadMessage*) before calling Connect().

Use case​

ThreadChannel methods enable:

  • Creating and replying in threads
  • Pinning thread messages to the parent channel