Is there an example or instructions that one can look at?
Here are the link to the docs on this subject
Here is an example
For more examples you can search cometchat-pro-samples on Github as well.
If you have integration issues, try searching the forums, in case the solution may already have been solved.
Hope this helps.