Ensure you have an active AtomChat account.
🔗 Sign up here (14-day free trial included)
<script>
var chat_appid = 'APP_ID';
var chat_auth = 'AUTH_KEY';
</script>
<script>
var chat_height = '600px';
var chat_width = '990px';
document.write('<div id="cometchat_embed_synergy_container" style="width:' + chat_width + ';height:' + chat_height + ';max-width:100%;border:1px solid #CCCCCC;border-radius:5px;overflow:hidden;"></div>');
var chat_js = document.createElement('script');
chat_js.type = 'text/javascript';
chat_js.src = 'https://fast.cometondemand.net/' + chat_appid + 'x_xchatx_xcorex_xembedcode.js';
chat_js.onload = function () {
var chat_iframe = {
module: "synergy",
style: "min-height:" + chat_height + ";min-width:" + chat_width + ";",
width: chat_width.replace('px', ''),
height: chat_height.replace('px', ''),
src: 'https://' + chat_appid + '.cometondemand.net/cometchat_embedded.php'
};
if (typeof addEmbedIframe === "function") {
addEmbedIframe(chat_iframe);
}
};
var chat_script = document.getElementsByTagName('script')[0];
chat_script.parentNode.insertBefore(chat_js, chat_script);
</script>
🔁 Replace
'APP_ID'and'AUTH_KEY'with your actual keys from the AtomChat Admin Panel.
AtomChat dynamically syncs users when they log in to your site.
Happy chatting!