Skip to main content
โ† Dashboard/

๐Ÿ’ฌ Live Chat Demo

SSE-powered

๐Ÿ’ฌ Real-time Customer Support Chat

Server-Sent Events (SSE) powered chat โ€” no WebSocket needed. Try sending a message!

๐ŸŽง
Fresh Support
Online ยท Typically replies in 2 min
Press Enter to send ยท Shift+Enter for new line ยท ๐Ÿ”’ End-to-end encrypted
๐Ÿ’ก
How this works in the real PHP app:
  1. Customer clicks chat icon โ†’ POST /api/v1/chat-realtime.php?action=start creates a conversation
  2. Browser opens SSE stream: EventSource('/api/v1/chat-realtime.php?action=stream&conversation_id=X')
  3. Server polls DB every 2s for new messages, pushes via SSE
  4. Customer types โ†’ POST ?action=send โ†’ message saved โ†’ SSE broadcasts to both parties
  5. Support agent sees message in admin panel โ†’ replies โ†’ SSE pushes to customer
  6. Auto-closes after 5 min (client auto-reconnects via EventSource)
Home
Categories
0
Cart
Account