Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
4332f97
refactor: improve sdk doc
aanshisingh-cometchat Feb 17, 2026
50e60be
refactor: update the sdk doc
aanshisingh-cometchat Feb 17, 2026
2c1d788
docs(javascript-sdk): enhance authentication and key concepts documen…
PrajwalDhuleCC Feb 18, 2026
2cdcb82
docs(javascript-sdk): enhance message handling documentation with bes…
PrajwalDhuleCC Feb 18, 2026
c14b74b
docs(javascript-sdk): enhance calling and messaging documentation wit…
PrajwalDhuleCC Feb 20, 2026
a2d6928
docs(javascript-sdk): enhance documentation with best practices and t…
PrajwalDhuleCC Feb 20, 2026
2908e24
Merge branch 'main' into docs/js-sdk-improvement
PrajwalDhuleCC Mar 4, 2026
1169d91
docs(sdk/javascript): Add message response documentation for "Send A …
PrajwalDhuleCC Mar 10, 2026
4128de3
docs(sdk): Add initial global message reference documentation and tag…
PrajwalDhuleCC Mar 13, 2026
a33f85f
docs(sdk/javascript): Add method payloads reference and update docume…
PrajwalDhuleCC Mar 16, 2026
8e3d649
Update .gitignore
swapnil-cometchat Mar 17, 2026
473ff8f
Create .mintignore
swapnil-cometchat Mar 17, 2026
de62744
Update .gitignore
swapnil-cometchat Mar 17, 2026
bd6e262
Merge branch 'main' into docs/js-sdk-agentic
swapnil-cometchat Mar 17, 2026
30144b1
updates docs
swapnil-cometchat Mar 18, 2026
55a8a50
I Integration Quick Reference
swapnil-cometchat Mar 18, 2026
201bfde
fixes
swapnil-cometchat Mar 18, 2026
053a3a0
deletes extra files
swapnil-cometchat Mar 18, 2026
b0e8a6e
SDK intialisation and Overview pages
swapnil-cometchat Mar 18, 2026
ec00ff0
Troubleshooting and Best Practices
swapnil-cometchat Mar 18, 2026
65137dc
Best Practices and Troubleshooting
swapnil-cometchat Mar 18, 2026
01ea580
Troubleshooting and error guides
swapnil-cometchat Mar 18, 2026
34dfb3a
Update docs.json
swapnil-cometchat Mar 18, 2026
17ee844
frame these pages better
swapnil-cometchat Mar 18, 2026
8e797c1
Update send-message.mdx
swapnil-cometchat Mar 18, 2026
aa7442c
Update send-message.mdx
swapnil-cometchat Mar 18, 2026
01ed70b
Update send-message.mdx
swapnil-cometchat Mar 18, 2026
90403fd
Update receive-message.mdx
swapnil-cometchat Mar 18, 2026
1f3b248
frame these better
swapnil-cometchat Mar 18, 2026
0916208
Links the references
swapnil-cometchat Mar 18, 2026
0fd5d1f
Update docs.json
swapnil-cometchat Mar 18, 2026
c3f526e
Update send-message.mdx
swapnil-cometchat Mar 18, 2026
ef2c022
updates references
swapnil-cometchat Mar 18, 2026
5eba105
calling docs - frame this better
swapnil-cometchat Mar 18, 2026
7c7c882
updates docs for Users and User Presence
swapnil-cometchat Mar 18, 2026
b4aecb1
groups - frame this better
swapnil-cometchat Mar 18, 2026
70f602d
Frame these better
swapnil-cometchat Mar 18, 2026
7387db2
minor fixes
swapnil-cometchat Mar 18, 2026
31f77c1
Update best-practices.mdx
swapnil-cometchat Mar 18, 2026
3481029
frame this better
swapnil-cometchat Mar 18, 2026
16f4a36
Update troubleshooting.mdx
swapnil-cometchat Mar 18, 2026
09c4729
Update interactive-messages.mdx
swapnil-cometchat Mar 18, 2026
d521e59
Update interactive-messages.mdx
swapnil-cometchat Mar 18, 2026
195ec6c
Update delivery-read-receipts.mdx
swapnil-cometchat Mar 18, 2026
c42d570
Update overview.mdx
swapnil-cometchat Mar 18, 2026
eaf694a
Merge branch 'main' into docs/js-sdk-agentic
swapnil-cometchat Mar 23, 2026
04c3d8f
docs(sdk/javascript): Add improved and concise reference tables and c…
PrajwalDhuleCC Mar 23, 2026
d244371
docs(sdk/javascript): Add reference links and field documentation for…
PrajwalDhuleCC Mar 23, 2026
933bc89
updates the typescript first and then javascript for examples
swapnil-cometchat Mar 25, 2026
60b6492
Revert "updates the typescript first and then javascript for examples"
swapnil-cometchat Mar 25, 2026
f9130ff
TypeScript and JavaScript - Examples
swapnil-cometchat Mar 25, 2026
789a54b
Update retrieve-users.mdx
swapnil-cometchat Mar 25, 2026
fef346b
updates navigation
swapnil-cometchat Mar 25, 2026
10c5d61
Update authentication-overview.mdx
swapnil-cometchat Mar 25, 2026
e2dd928
Update overview.mdx
swapnil-cometchat Mar 25, 2026
bda4ead
Update authentication-overview.mdx
swapnil-cometchat Mar 25, 2026
540c3e4
Update setup-sdk.mdx
swapnil-cometchat Mar 25, 2026
4fbab3f
Update authentication-overview.mdx
swapnil-cometchat Mar 25, 2026
cca23b4
docs(sdk/javascript): Update group management documentation with refe…
PrajwalDhuleCC Mar 25, 2026
01e4f08
typo fixes
swapnil-cometchat Mar 25, 2026
8751f02
docs(sdk/javascript): Add relevant fields reference tables to message…
PrajwalDhuleCC Mar 25, 2026
42dc143
docs(sdk/javascript): Remove redundant field reference tables from do…
PrajwalDhuleCC Mar 25, 2026
f58293c
Update overview.mdx
swapnil-cometchat Mar 25, 2026
2e3b1b4
Update message-filtering.mdx
swapnil-cometchat Mar 25, 2026
5121686
Update retrieve-conversations.mdx
swapnil-cometchat Mar 25, 2026
ed9adc2
Update retrieve-groups.mdx
swapnil-cometchat Mar 25, 2026
f063bd6
Update overview.mdx
swapnil-cometchat Mar 25, 2026
fed4ae1
Merge branch 'main' into docs/js-sdk-v4-agentic
swapnil-cometchat Mar 25, 2026
6648c3e
Update authentication-overview.mdx
swapnil-cometchat Mar 26, 2026
5c90b81
Update receive-message.mdx
swapnil-cometchat Mar 26, 2026
a657e7c
docs(sdk): Remove redundant Call field tables and add Reaction reference
PrajwalDhuleCC Mar 26, 2026
a38925e
Update threaded-messages.mdx
swapnil-cometchat Mar 26, 2026
de219d1
docs(sdk): Replace redundant callback tables with OngoingCallListener…
PrajwalDhuleCC Mar 26, 2026
f12dae9
Update reactions.mdx
swapnil-cometchat Mar 26, 2026
0b30f58
Update calling-overview.mdx
swapnil-cometchat Mar 26, 2026
de733f2
Update calling-setup.mdx
swapnil-cometchat Mar 26, 2026
d3616dd
AI Integration Quick Reference
swapnil-cometchat Mar 26, 2026
88a5184
updates code
swapnil-cometchat Mar 26, 2026
8aa9102
Update direct-call.mdx
swapnil-cometchat Mar 26, 2026
fde21dc
docs(sdk): Add AI Assistant and Ongoing Call listeners documentation …
PrajwalDhuleCC Mar 26, 2026
02e9de0
Update standalone-calling.mdx
swapnil-cometchat Mar 26, 2026
4bf61c5
Update recording.mdx
swapnil-cometchat Mar 26, 2026
227360e
Update virtual-background.mdx
swapnil-cometchat Mar 26, 2026
95a7152
Update video-view-customisation.mdx
swapnil-cometchat Mar 26, 2026
a491fd2
Update custom-css.mdx
swapnil-cometchat Mar 26, 2026
b386067
Update presenter-mode.mdx
swapnil-cometchat Mar 26, 2026
a2e08d3
Update call-logs.mdx
swapnil-cometchat Mar 26, 2026
67b01ae
Update session-timeout.mdx
swapnil-cometchat Mar 26, 2026
3118034
Update users-overview.mdx
swapnil-cometchat Mar 26, 2026
30dc212
Update retrieve-users.mdx
swapnil-cometchat Mar 26, 2026
d9aa004
Update user-management.mdx
swapnil-cometchat Mar 26, 2026
4e12c0a
Update block-users.mdx
swapnil-cometchat Mar 26, 2026
d5ff437
Update docs.json
swapnil-cometchat Mar 26, 2026
f29ddb9
Update docs.json
swapnil-cometchat Mar 26, 2026
d6306f4
Update groups-overview.mdx
swapnil-cometchat Mar 26, 2026
7c9f9fc
Update ai-moderation.mdx
swapnil-cometchat Mar 26, 2026
b79c200
Update docs.json
swapnil-cometchat Mar 26, 2026
cf73691
Update docs.json
swapnil-cometchat Mar 26, 2026
dc365f9
Update ai-agents.mdx
swapnil-cometchat Mar 26, 2026
9a14f4c
Update key-concepts.mdx
swapnil-cometchat Mar 26, 2026
1e9af68
Update message-structure-and-hierarchy.mdx
swapnil-cometchat Mar 26, 2026
c7b32da
Update all-real-time-listeners.mdx
swapnil-cometchat Mar 26, 2026
f4b1b6a
Update rate-limits.mdx
swapnil-cometchat Mar 26, 2026
35f5424
Update connection-status.mdx
swapnil-cometchat Mar 26, 2026
f3912e3
Update managing-web-sockets-connections-manually.mdx
swapnil-cometchat Mar 26, 2026
00d23e7
Merge branch 'docs/js-sdk-agentic' into docs/js-sdk-improvement
PrajwalDhuleCC Mar 26, 2026
fdf0c58
error codes
swapnil-cometchat Mar 26, 2026
f85379d
Update upgrading-from-v3.mdx
swapnil-cometchat Mar 26, 2026
b7be107
Revert files to match main
PrajwalDhuleCC Mar 26, 2026
6cb6f7e
Update troubleshooting.mdx
swapnil-cometchat Mar 26, 2026
3a525c0
Update ai-agents.mdx
swapnil-cometchat Mar 26, 2026
155e908
Update ai-moderation.mdx
swapnil-cometchat Mar 26, 2026
e5720ee
Merge branch 'docs/js-sdk-improvement' into docs/js-sdk-agentic
swapnil-cometchat Mar 26, 2026
55b0fbf
missing methods
swapnil-cometchat Mar 26, 2026
8774649
Update receive-message.mdx
swapnil-cometchat Mar 26, 2026
9f81082
Update receive-message.mdx
swapnil-cometchat Mar 26, 2026
cef0cc7
fixes the response objects
swapnil-cometchat Mar 26, 2026
7b5a8e8
Update retrieve-groups.mdx
swapnil-cometchat Mar 26, 2026
86fdd99
Update retrieve-conversations.mdx
swapnil-cometchat Mar 26, 2026
f0ab102
fixes issues related to docs against codebase
swapnil-cometchat Mar 26, 2026
8e54e09
CometChatException
swapnil-cometchat Mar 26, 2026
c6e359a
in-private
swapnil-cometchat Mar 26, 2026
10f69d1
adds references to all the links
swapnil-cometchat Mar 26, 2026
5552457
Update create-group.mdx
swapnil-cometchat Mar 26, 2026
c6ba2a6
Update update-group.mdx
swapnil-cometchat Mar 26, 2026
f33f7da
Update join-group.mdx
swapnil-cometchat Mar 26, 2026
0fb93ba
Update leave-group.mdx
swapnil-cometchat Mar 26, 2026
f89c658
Update delete-group.mdx
swapnil-cometchat Mar 26, 2026
88bde69
Update retrieve-groups.mdx
swapnil-cometchat Mar 26, 2026
dcffe0f
Update retrieve-group-members.mdx
swapnil-cometchat Mar 26, 2026
d69d845
Update group-add-members.mdx
swapnil-cometchat Mar 27, 2026
d329cab
minor fixes
swapnil-cometchat Mar 27, 2026
ce15ed3
Update group-kick-ban-members.mdx
swapnil-cometchat Mar 27, 2026
a671f73
Update group-change-member-scope.mdx
swapnil-cometchat Mar 27, 2026
ab07c65
Update transfer-group-ownership.mdx
swapnil-cometchat Mar 27, 2026
b303340
Update authentication-overview.mdx
swapnil-cometchat Mar 27, 2026
9cf5666
minor fixes
swapnil-cometchat Mar 27, 2026
42c3edd
Update ai-agents.mdx
swapnil-cometchat Mar 27, 2026
b106ccd
adds summary
swapnil-cometchat Apr 1, 2026
340b3b9
Smart Chat Features
swapnil-cometchat Apr 1, 2026
4f1ddbc
Update troubleshooting.mdx
swapnil-cometchat Apr 2, 2026
291312b
Update troubleshooting.mdx
swapnil-cometchat Apr 2, 2026
fb36d49
Update receive-message.mdx
swapnil-cometchat Apr 2, 2026
399c5ad
Update message-filtering.mdx
swapnil-cometchat Apr 2, 2026
ed9eb15
Update message-filtering.mdx
swapnil-cometchat Apr 2, 2026
7a4e47c
Update message-filtering.mdx
swapnil-cometchat Apr 2, 2026
dc39b54
Update retrieve-conversations.mdx
swapnil-cometchat Apr 2, 2026
0c1a60e
Update retrieve-users.mdx
swapnil-cometchat Apr 2, 2026
3e72939
Update overview.mdx
swapnil-cometchat Apr 2, 2026
cc79239
removes duplicate content
swapnil-cometchat Apr 2, 2026
e3cd328
Update send-message.mdx
swapnil-cometchat Apr 2, 2026
091d06a
Update overview.mdx
swapnil-cometchat Apr 2, 2026
025ba88
removes interactive message
swapnil-cometchat Apr 2, 2026
ef82456
Update messages.mdx
swapnil-cometchat Apr 2, 2026
ae08414
next steps
swapnil-cometchat Apr 2, 2026
236f081
removes presenter mode
swapnil-cometchat Apr 2, 2026
21b6bc6
Update group-change-member-scope.mdx
swapnil-cometchat Apr 2, 2026
fefe2e4
Message editing in CometChat is controlled by -
swapnil-cometchat Apr 2, 2026
2736adc
Merge branch 'main' into docs/js-sdk-agentic
swapnil-cometchat Apr 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ __pycache__/
/docs-templates
/docs-test-suite
/prompts
/docs-comparison-tool
/docs-comparison-tool
/node_modules
65 changes: 20 additions & 45 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2766,35 +2766,15 @@
{
"group": " ",
"pages": [
{
"group": "Overview",
"pages": [
"sdk/javascript/overview",
"sdk/javascript/key-concepts",
"sdk/javascript/message-structure-and-hierarchy",
"sdk/javascript/rate-limits"
]
},
{
"group": "Setup",
"pages": [
"sdk/javascript/setup-sdk"
]
},
{
"group": "Authentication",
"pages": [
"sdk/javascript/authentication-overview",
"sdk/javascript/login-listener"
]
},
"sdk/javascript/overview",
"sdk/javascript/setup-sdk",
"sdk/javascript/authentication-overview",
{
"group": "Messaging",
"pages": [
"sdk/javascript/messaging-overview",
"sdk/javascript/send-message",
"sdk/javascript/receive-message",
"sdk/javascript/additional-message-filtering",
"sdk/javascript/message-filtering",
"sdk/javascript/retrieve-conversations",
"sdk/javascript/threaded-messages",
"sdk/javascript/edit-message",
Expand Down Expand Up @@ -2835,12 +2815,7 @@
"sdk/javascript/block-users"
]
},
{
"group": "User Presence",
"pages": [
"sdk/javascript/user-presence"
]
},
"sdk/javascript/user-presence",
{
"group": "Groups",
"pages": [
Expand All @@ -2860,30 +2835,31 @@
},
"sdk/javascript/ai-moderation",
"sdk/javascript/ai-agents",
"sdk/javascript/ai-copilot",
{
"group": "Resources",
"pages": [
"sdk/javascript/resources-overview",
"sdk/javascript/key-concepts",
"sdk/javascript/message-structure-and-hierarchy",
"sdk/javascript/all-real-time-listeners",
"sdk/javascript/upgrading-from-v3"
]
},
{
"group": "Advanced",
"pages": [
"sdk/javascript/advanced-overview",
"sdk/javascript/rate-limits",
"sdk/javascript/connection-status",
"sdk/javascript/managing-web-sockets-connections-manually"
]
},
{
"group": "UI Kits",
"group": "Reference",
"pages": [
"sdk/javascript/react-overview",
"sdk/javascript/vue-overview",
"sdk/javascript/angular-overview"
"sdk/reference/messages",
"sdk/reference/entities",
"sdk/reference/auxiliary",
"sdk/reference/calls"
]
},
},
"sdk/javascript/best-practices",
"sdk/javascript/error-codes",
"sdk/javascript/troubleshooting",
"sdk/javascript/upgrading-from-v3",
"sdk/javascript/extensions-overview",
"sdk/javascript/ai-user-copilot-overview",
"sdk/javascript/ai-chatbots-overview",
Expand Down Expand Up @@ -3156,7 +3132,6 @@
"sdk/react-native/delete-message",
"sdk/react-native/delete-conversation",
"sdk/react-native/typing-indicators",
"sdk/react-native/interactive-messages",
"sdk/react-native/transient-messages",
"sdk/react-native/delivery-read-receipts",
"sdk/react-native/mentions",
Expand Down Expand Up @@ -6062,7 +6037,7 @@
{
"tab": "Notifications",
"pages": [
"notifications/overview"
"notifications"
]
},
{
Expand Down
2 changes: 2 additions & 0 deletions sdk/ionic-legacy/additional-message-filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Once you have an object of the `MessagesRequest` class, you can call either the
1. fetchNext() - Calling this method will return the messages after the specified parameters.
2. fetchPrevious() - Calling this method will give you messages before the specified parameters.

Both `fetchPrevious()` and `fetchNext()` return an array of [`BaseMessage`](/sdk/reference/messages#basemessage) objects (which may be [`TextMessage`](/sdk/reference/messages#textmessage), [`MediaMessage`](/sdk/reference/messages#mediamessage), [`CustomMessage`](/sdk/reference/messages#custommessage), or other subclasses depending on the filters applied).

Since messages are obtained in a paginated manner, a `maximum of 100` messages can be pulled in a single iteration. Calling the `fetchPrevious()`/`fetchNext()` method on the same `MessagesRequest` object will get you the next set of messages.

Now that you are clear how to use the `MessagesRequest` class, below are the various options available:
Expand Down
39 changes: 39 additions & 0 deletions sdk/javascript/advanced-overview.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,47 @@
---
title: "Advanced"
sidebarTitle: "Overview"
description: "Advanced SDK features including connection management, real-time listeners, login listeners, and WebSocket configuration."
---

{/* TL;DR for Agents and Quick Reference */}
<Accordion title="AI Integration Quick Reference">

```javascript
// 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")
}));
```
</Accordion>

This section helps you to know about the Connection Listeners.

---

## Next Steps

<CardGroup cols={2}>
<Card title="Connection Status" icon="signal" href="/sdk/javascript/connection-status">
Monitor and respond to connection state changes
</Card>
<Card title="WebSocket Management" icon="plug" href="/sdk/javascript/managing-web-sockets-connections-manually">
Manually manage WebSocket connections
</Card>
<Card title="Login Listener" icon="right-to-bracket" href="/sdk/javascript/authentication-overview#login-listener">
Listen for login and logout events
</Card>
<Card title="All Real-Time Listeners" icon="tower-broadcast" href="/sdk/javascript/all-real-time-listeners">
Complete reference for all SDK listeners
</Card>
</CardGroup>
Loading