TheDocumentation Index
Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
UCometChatSubsystem exposes five multicast delegates that fire whenever the server pushes a real-time update. All delegates are guaranteed to fire on the Game Thread, so you can safely update UI directly.
Event Flow
Binding Delegates
- Blueprint
- C++
- Get a reference to the CometChat Subsystem
- Drag off the Subsystem pin and search for the delegate name (e.g., On Message Received)
- Select Bind Event to wire it to a custom event node
- The custom event automatically gets the correct parameter type
OnMessageReceived
Fires when a new message arrives in any conversation (1:1 or group).| Payload | Type |
|---|---|
Message | FCometChatMessage |
- Blueprint
- C++
The custom event receives an
FCometChatMessage. Use ReceiverType to check if it’s a user (1:1) or group message, and ConversationId to route it to the right chat window.OnPresenceChanged
Fires when a user’s online status changes.| Payload | Type |
|---|---|
Presence | FCometChatPresence |
- Blueprint
- C++
The custom event receives an
FCometChatPresence with Uid, Status (an ECometChatPresenceStatus enum), and LastActiveAt.OnTypingChanged
Fires when a user starts or stops typing in a conversation.| Payload | Type |
|---|---|
Event | FCometChatTypingEvent |
- Blueprint
- C++
The custom event receives an
FCometChatTypingEvent with Uid, ConversationId, and bIsTyping.OnReceiptReceived
Fires when a message is delivered to or read by the recipient.| Payload | Type |
|---|---|
Event | FCometChatReceiptEvent |
- Blueprint
- C++
The custom event receives an
FCometChatReceiptEvent with MessageId, Uid, Status (delivered or read), and Timestamp.OnConnectionStateChanged
Fires when the WebSocket connection state changes.| Payload | Type |
|---|---|
State | ECometChatConnectionState |
| Value | Meaning |
|---|---|
Connected | WebSocket is active and receiving events |
Disconnected | Connection lost |
Reconnecting | SDK is attempting to reconnect automatically |
- Blueprint
- C++
The custom event receives an
ECometChatConnectionState enum value.Delegate Summary
| Delegate | Payload | Use Case |
|---|---|---|
OnMessageReceived | FCometChatMessage | Display new messages in chat UI |
OnPresenceChanged | FCometChatPresence | Update online/offline indicators |
OnTypingChanged | FCometChatTypingEvent | Show “typing…” animations |
OnReceiptReceived | FCometChatReceiptEvent | Show delivery/read checkmarks |
OnConnectionStateChanged | ECometChatConnectionState | Show connection status banners |