Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-v6-beta2-flutter-uikit.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
AI Integration Quick Reference
// Check connection status
CometChat.getConnectionStatus(); // "connected" | "connecting" | "disconnected"
// Listen for connection changes
CometChat.addConnectionListener("LISTENER_ID", new CometChat.ConnectionListener({
onConnected: () => console.log("Connected"),
onDisconnected: () => console.log("Disconnected")
}));
// Listen for login events
CometChat.addLoginListener("LISTENER_ID", new CometChat.LoginListener({
loginSuccess: (user) => console.log("Logged in:", user),
logoutSuccess: () => console.log("Logged out")
}));
This section helps you to know about the Connection Listeners.
Next Steps
Connection Status
Monitor and respond to connection state changes
WebSocket Management
Manually manage WebSocket connections
Login Listener
Listen for login and logout events
All Real-Time Listeners
Complete reference for all SDK listeners