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:
| Parameter | Description |
|---|---|
ParentChannelIdType: 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.
GetParentChannelID()— returns the parent channel ID (local, no network call).GetParentMessage()— returns the parent message object (local, no network call).GetThreadHistory()PinMessageToParentChannel()UnpinMessageFromParentChannel()- All methods available under the
Channelobject.
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: