JavaScript Chat SDK v4 — LLM docs index (Latest)
Low-level JavaScript/TypeScript chat + calling client. Package@cometchat/chat-sdk-javascript@4. This page is a JavaScript-SDK-v4-only routing index for AI agents — a scoped alternative to the site-wide/docs/llms.txt.
How to use this index
Each link below is already a.md twin (clean Markdown: verbatim code + method signatures,
parameters, and listener contracts). Pick the page for the intent, fetch its .md, read the API
there.
- Convention: any docs page URL +
.md→ raw Markdown. - Fallback: if a
.mdtwin 404s, fetch the same URL without.md(HTML). Never read a package.d.tsand never answer APIs from memory.
Hot path — usually no fetch needed
For a plain “add chat” the install,init → login, and the core sendMessage / receive-message
listener flow are stable; a well-built agent skill bakes them. Fetch below only for exhaustive
parameters, long-tail methods, group/user management, calling, or edge-case listeners.
- Setup: Integration / Setup
- Auth/lifecycle: Authentication
- Core send/receive: Send a Message · Receive a Message · Real-time Listeners
Getting started / integration
Messaging
- Send a Message
- Media & File Messages
- Receive a Message
- Interactive / Card Messages
- Message Filtering
- Retrieve Conversations
- Threaded Messages
- Edit a Message
- Delete a Message
- Flag a Message
- Delete a Conversation
- Typing Indicators
- Transient Messages
- Delivery & Read Receipts
- Mentions
- Reactions
Calling
Users
Groups
- Groups — Overview
- Retrieve Groups
- Create a Group
- Update a Group
- Join a Group
- Leave a Group
- Delete a Group
- Retrieve Group Members
- Add Group Members
- Kick / Ban Members
- Change Member Scope
- Transfer Group Ownership
AI, campaigns & webhooks
Resources
- Key Concepts
- Message Structure & Hierarchy
- All Real-time Listeners
- Rate Limits
- Connection Status
- Managing WebSocket Connections Manually