Skip to main content

Messages Events

CometChatMessageEvents emits events when the logged-in user executes some action on a message object.

It consists of the following events:

NameDescription
ccMessageSentThis event is triggered when the sent message is in transit and also when it is received by the receiver.
ccMessageEditedThis event is triggered when the user successfully edits the message.
ccMessageDeletedThis event is triggered when the user successfully deletes the message.
ccMessageReadThis event is triggered when the sent message is read by the receiver.
ccLiveReactionThis event is triggered when the user sends a live reaction.
onTextMessageReceivedThis event is emitted when the CometChat SDK listener emits a text message.
onMediaMessageReceivedThis event is emitted when the CometChat SDK listener emits a media message.
onCustomMessageReceivedThis event is emitted when the CometChat SDK listener emits a custom message.
onTypingStartedThis event is emitted when the CometChat SDK listener indicates that a user has started typing.
onTypingEndedThis event is emitted when the CometChat SDK listener indicates that a user has stopped typing.
onMessagesDeliveredThis event is emitted when the CometChat SDK listener indicates that messages have been delivered.
onMessagesReadThis event is emitted when the CometChat SDK listener indicates that messages have been read.
onMessageEditedThis event is emitted when the CometChat SDK listener indicates that a message has been edited.
onMessageDeletedThis event is emitted when the CometChat SDK listener indicates that a message has been deleted.
onTransientMessageReceivedThis event is emitted when the CometChat SDK listener emits a transient message.
onInteractionGoalCompletedThis event is emitted when the CometChat SDK listener indicates that an interaction goal has been completed.
onFormMessageReceivedThis event is emitted when an interactive message of 'form' type is received from the CometChat SDK listener.
onCardMessageReceivedThis event is emitted when an interactive message of 'card' type is received from the CometChat SDK listener.
onSchedulerMessageReceivedThis event is emitted when an interactive message of 'scheduler' type is received from the CometChat SDK listener.
onCustomInteractiveMessageReceivedThis event is emitted when an interactive message of 'customInteractive' type is received from the CometChat SDK listener.
onMessageReactionAddedThis event is triggered when a reaction is added to a message, which is received through the CometChat SDK listener.
onMessageReactionRemovedThis event is triggered when a reaction is removed from a message, which is received through the CometChat SDK listener.