Skip to content
</> QUICKSTART

Quickstart: link your app to Chat Live rooms

The supported integration is navigation to the independent Chat Live experience using a valid room URL—not iframe embedding or shared third-party cookies.

Current capabilities only — admin-issued scoped API keys; first-party WebSocket only

1. A direct room link

The /ar/room/general route opens the Arabic chat page for the general room; use /en/room/general for English. The visitor may still need to sign in or request access under the room policy.

HTML
<a href="https://chat.egytag.com/ar/room/general"
   target="_blank" rel="noopener noreferrer">
  افتح الغرفة العامة في Chat Live
</a>

2. Build the URL safely

Validate the room slug before constructing a URL. A display title is not a slug; avoid accepting arbitrary remote URLs.

JavaScript
function chatRoomUrl(slug, language = 'ar') {
  if (!/^[a-z0-9-]{1,80}$/.test(slug)) throw new Error('Invalid room slug');
  const lang = language === 'en' ? 'en' : 'ar';
  return `https://chat.egytag.com/${lang}/room/${slug}`;
}
// Navigate to the independent Chat Live app:
window.location.assign(chatRoomUrl('general'));

3. Integration checklist

  1. Add an Open Chat button to your application.
  2. Select a slug obtained from public room discovery.
  3. Navigate to Chat Live in a tab or the same window.
  4. Let Chat Live apply its own sign-in and room-permission rules.

Security note

Do not put session cookies or tokens in URLs. Do not iframe the chat. The current platform explicitly prevents embedding on other origins.