Skip to main content
Events provide decoupled communication between UIKit components using a publish/subscribe event bus pattern. Components emit events in response to user interactions or state changes, allowing other parts of your application to react without direct component references. In Angular, you subscribe to these events using RxJS observables and manage subscriptions through component lifecycle hooks.

CometChatConversationEvents

CometChatConversationEvents emits events when the logged-in user acts on a conversation object.

CometChatUserEvents

CometChatUserEvents emits events when the logged-in user acts on another user object.

CometChatGroupEvents

CometChatGroupEvents emits events when the logged-in user acts on a group object.

CometChatMessageEvents

CometChatMessageEvents emits events when the logged-in user acts on a message object. This category includes both UIKit-level events and CometChat SDK listener events.

UIKit Events

SDK Listener Events

CometChatCallEvents

CometChatCallEvents emits events when the logged-in user acts on a call object.

UI Events

UI events are triggered when a user interacts with UIKit elements such as buttons, menus, or input fields.

Usage

Subscribe to events in ngOnInit and unsubscribe in ngOnDestroy to prevent memory leaks.
When subscribing to multiple events, consider using a Subscription container to manage all subscriptions together.