For AI agents: this page in Markdown: https://www.pubnub.com/docs/chat/kotlin-chat-sdk/learn/chat-entities/thread-message.md. Documentation index: https://www.pubnub.com/llms-full.txt.
ThreadMessage object
ThreadMessage represents a single message in a thread.
Properties
The ThreadMessage interface extends the Message interface, so it takes its properties. It also has:
1interface ThreadMessage : Message {
2 val parentChannelId: String
3}
parentChannelId#- Unique identifier of the main channel on which you create a subchannel (thread channel) and thread messages.
Methods
The ThreadMessage object exposes the following methods.
Regular methods
Event listeners
All methods available under the Message object also apply to ThreadMessage.
Use case
ThreadMessage methods enable: