Use this file to discover all available pages before exploring further.
AI Integration Quick Reference
// Join a public groupawait CometChat.joinGroup("GUID", CometChat.GROUP_TYPE.PUBLIC, "");// Join a password-protected groupawait CometChat.joinGroup("GUID", CometChat.GROUP_TYPE.PASSWORD, "password123");// Listen for member joined eventsCometChat.addGroupListener("listener", new CometChat.GroupListener({ onGroupMemberJoined: (message, joinedUser, joinedGroup) => { }}));
Join a group to start sending and receiving messages in it. Public groups can be joined freely, password groups require the correct password, and private groups require an admin to add you (no direct join).
Once joined, you can send and receive messages in the group. CometChat tracks joined groups — you don’t need to rejoin each session. Check hasJoined on the Group object to verify membership.The method returns a Group object with hasJoined set to true.
Always remove group listeners when they’re no longer needed (e.g., on component unmount or page navigation). Failing to remove listeners can cause memory leaks and duplicate event handling.