My Account | Buy CometChat

documentation

reinitialize()

The API

The reinitialize() function assists you to reload CometChat.

jqcc.cometchat.reinitialize();

Sample Code

If you have placed your site inside an iFrame or you perform login using AJAX, then the CometChat bar will still show the user as not logged in. Inorder to login the user without refreshing the window, you can use this function.

function onlogincomplete() {
    jqcc.cometchat.reinitialize();  
}