HomeGuidesAPI ReferenceChangelogDiscussions
API Reference

A callback function that lets developers know when the chat widget is ready

This JS method allows developers to set up a callback function when the widget is loaded successfully.

imichatwidget.on("imichat-widget:ready", function(appId){
  	var loadedAppId = appId;
  	//do anything here
    //imichatwidget.show();
    //imichatwidget.maximizeWindow();
});

This callback function can be used to avoid turning on the visibility of the widget while it is loaded prematurely.