In order for you to show All Online User & Guest in CometChat Contact Tab.
1) How does the guest chat work?
-We are storing guest entry in 'cometchat_guests' table. Guest is always created with random Number. Once Guest Created We set Cookie on Client Side for that guest.
2) one on one chat without sending the friend request?
Step 1:
Login to CometChat admin panel.
Step 2:
From Left Menu Click on "Settings->General"
Step 3:
Search for "Authentication Mode"
Step 4:
Enable "Site's Authentication" & "Enable Guest Chat".
Search for "In Who`s Online list, for guests" & "For logged in users" Select "Show Both" from Drop-Down.
Clicked on "Update" button.
Step 5:
Search for "One-on-one Chat" in this section you have to search for "Show all online users (Including Non-friends)" and make this option as "Yes".
Search for "Hide offline users in Contacts Chats?" and make this option as "No".
Clicked on "Update" button.