Quick Reference for AI Agents & Developers
Quick Reference
All Real-Time Listeners
Complete reference for all event listeners available in the SDK
Message Structure
Understand message types, properties, and hierarchy
Rate Limits
API rate limits and best practices for high-volume apps
Changelog
Latest SDK updates, features, and bug fixes
Migration & Upgrades
Upgrading from V3
Step-by-step guide to migrate from SDK v3 to v4
Event Listeners Reference
The SDK provides real-time listeners for all chat events:| Listener Type | Purpose | Key Events |
|---|---|---|
| Message Listener | Incoming messages | onTextMessageReceived, onMediaMessageReceived |
| User Listener | User status changes | onUserOnline, onUserOffline |
| Group Listener | Group updates | onGroupMemberJoined, onGroupMemberLeft |
| Call Listener | Call events | onIncomingCallReceived, onOutgoingCallAccepted |
| Connection Listener | WebSocket status | onConnected, onDisconnected |
| Login Listener | Auth state | onLoginSuccess, onLogout |
External Resources
GitHub Repository
Source code, issues, and contributions
NPM Package
Package details and version history
Getting Help
Documentation
Documentation
Start with the SDK Overview for a complete guide to all features.
Sample Apps
Sample Apps
Explore our sample applications on GitHub for working implementations.
Support
Support
Contact CometChat Support for technical assistance.