title: Is there any callback function after 'Friends List' loaded in cometchat?
body: <p>I have integrated 'Embed Layout' comet chat on my site. Now I want to open particular friend chat on page load.</p>
  
  <p>In the documentation, I've found below code to do the same. REF : <a href="https://support.cometchat.com/documentation/php/developers-api/javascript-api/chatwith/" rel="nofollow noreferrer" title="Cometchat Documentation">Documentation Link</a></p>
  
  <p><code>jqcc.cometchat.chatWith(user_id)</code></p>
  
  <p>I have included in custom js from admin panel. However, it is showing below error in console</p>
  
  <p><code>jqcc.cometchat.chatWith is not a function</code></p>
  
  <p>But If I use same after friends list loaded from the console it is working fine.</p>
  
  <p>How can I fix this issue?</p>