Skip to main content

Documentation 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.

This page is a single-stop reference for every public API surface in the CometChat Unreal SDK plugin.

Subsystem Methods

These are called directly on UCometChatSubsystem.
MethodCategoryParametersReturnsDescription
ConfigureConfigAppId: FString, Region: FStringvoidInitialize the SDK with your CometChat credentials. Must be called before Login.
IsLoggedInAuthboolReturns true if a user is currently authenticated.
ShutdownLifecyclevoidTear down the SDK and release all resources.

Async Action Nodes

Each node is a latent Blueprint action with On Success and On Failure output pins. In C++, create via the static factory method, bind delegates, and call Activate().

Authentication

NodeParametersSuccess OutputDescription
Login AsyncUid: FString, AuthKey: FStringAuthenticate a user with CometChat.
Logout AsyncLog out the current user and disconnect.

Messaging

NodeParametersSuccess OutputDescription
Send Message AsyncReceiverUid: FString, Text: FStringFCometChatMessageSend a 1:1 text message.
Send Group Message AsyncGuid: FString, Text: FStringFCometChatMessageSend a text message to a group.
Get Messages AsyncUid: FString, Limit: int32TArray<FCometChatMessage>Fetch message history for a 1:1 conversation.
Get Group Messages AsyncGuid: FString, Limit: int32, BeforeMessageId: int32TArray<FCometChatMessage>, FCometChatPaginationFetch paginated message history for a group.

Users

NodeParametersSuccess OutputDescription
Get User AsyncUid: FStringFCometChatUserFetch a user’s profile.

Groups

NodeParametersSuccess OutputDescription
Create Group AsyncName: FString, MemberIds: TArray<FString>FCometChatGroupCreate a new group with initial members.
Join Group AsyncGuid: FStringJoin an existing group.
Leave Group AsyncGuid: FStringLeave a group.

Real-Time Delegates

All delegates are UPROPERTY(BlueprintAssignable) on UCometChatSubsystem. They fire on the Game Thread.
DelegatePayload TypeFires When
OnMessageReceivedFCometChatMessageA new message arrives (1:1 or group)
OnPresenceChangedFCometChatPresenceA user goes online, offline, or away
OnTypingChangedFCometChatTypingEventA user starts or stops typing
OnReceiptReceivedFCometChatReceiptEventA message is delivered or read
OnConnectionStateChangedECometChatConnectionStateWebSocket connection state changes

Structs

FCometChatUser

PropertyTypeDescription
UidFStringUnique user identifier
NameFStringDisplay name
AvatarUrlFStringURL to avatar image
StatusFStringCurrent status text

FCometChatMessage

PropertyTypeDescription
IdFStringUnique message identifier
SenderUidFStringUID of the sender
ReceiverUidFStringUID of the receiver (user or group)
TextFStringMessage body
SentAtint64Unix timestamp when sent
TypeFStringtext, image, file, custom
CategoryFStringmessage, action, call, custom
ReceiverTypeFStringuser or group
ConversationIdFStringConversation identifier
SenderNameFStringSender’s display name
SenderAvatarFStringSender’s avatar URL
UpdatedAtint64Unix timestamp of last update

FCometChatGroup

PropertyTypeDescription
GuidFStringUnique group identifier
NameFStringGroup display name
DescriptionFStringGroup description
MemberIdsTArray<FString>UIDs of group members

FCometChatPagination

PropertyTypeDescription
Totalint32Total messages available
Countint32Messages returned in this page
PerPageint32Page size requested
CurrentPageint32Current page number
TotalPagesint32Total pages available
HasMoreboolWhether more pages exist
NextCursorint32Message ID for next page (BeforeMessageId)

FCometChatPresence

PropertyTypeDescription
UidFStringUser identifier
StatusECometChatPresenceStatusOnline, Offline, or Away
LastActiveAtint64Unix timestamp of last activity

FCometChatTypingEvent

PropertyTypeDescription
UidFStringUser who is typing
ConversationIdFStringConversation where typing occurs
bIsTypingbooltrue = started, false = stopped

FCometChatReceiptEvent

PropertyTypeDescription
MessageIdFStringThe message this receipt is for
UidFStringUser who triggered the receipt
StatusFStringdelivered or read
Timestampint64Unix timestamp of the receipt

Enums

ECometChatConnectionState

ValueDescription
ConnectedWebSocket is active
DisconnectedWebSocket is closed
ReconnectingSDK is attempting to reconnect

ECometChatPresenceStatus

ValueDescription
OnlineUser is currently active
OfflineUser is not connected
AwayUser is connected but idle

C++ Header Includes

When working in C++, here are the headers you’ll need:
// Subsystem (always needed)
#include "CometChatSubsystem.h"

// Async action nodes (include as needed)
#include "AsyncActions/CometChatLoginAction.h"
#include "AsyncActions/CometChatLogoutAction.h"
#include "AsyncActions/CometChatSendMessageAction.h"
#include "AsyncActions/CometChatSendGroupMessageAction.h"
#include "AsyncActions/CometChatGetMessagesAction.h"
#include "AsyncActions/CometChatGetGroupMessagesAction.h"
#include "AsyncActions/CometChatGetUserAction.h"
#include "AsyncActions/CometChatCreateGroupAction.h"
#include "AsyncActions/CometChatJoinGroupAction.h"
#include "AsyncActions/CometChatLeaveGroupAction.h"
All types (FCometChatUser, FCometChatMessage, FCometChatGroup, etc.) are defined in CometChatSubsystem.h.