Ready UI

Set url
Pass the url where you have installed the CometChat by using setUrl() function.
e.g

Readyui.setUrl("http://www.mycometchaturl.com/cometchat/");

Login to CometChat
Login to CometChat by passing username and password to the function login().
e.g

Readyui.login("John","passw0rd");

Launch Chat in your app
Launch Chat app inside your app by using the launchCometChat() function.
e.g

Readyui.launchCometChat();

Launch Chat window
If you wish to load the chat window of any specific user instead of opening the entire chat app you can use chatWithMe() function. Pass the user id of the user with whom you wish to chat.
e.g

Readyui.chatWithMe("2")

Not finding what you need?

The CometChat team is here to help!