Chat Button
Show Chat Button
By default, the chat button is hidden. To show it:Listen for Chat Button Clicks
Handle chat button clicks to open your chat interface:Unread Message Badge
Update the badge count on the chat button to show unread messages:| Parameter | Type | Description |
|---|---|---|
count | Number | The unread message count to display |
Building In-Call Chat
The Calls SDK provides the UI hooks for in-call chat, but the actual messaging functionality should be implemented using the CometChat Chat SDK or your own messaging solution.Integration with CometChat Chat SDK
If you’re using the CometChat Chat SDK, you can:- Create a group for the call session
- Use the group ID as the session ID
- Send and receive messages through the Chat SDK
- Update the unread badge count based on incoming messages