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:
- Customer clicks chat icon โ
POST /api/v1/chat-realtime.php?action=startcreates a conversation - Browser opens SSE stream:
EventSource('/api/v1/chat-realtime.php?action=stream&conversation_id=X') - Server polls DB every 2s for new messages, pushes via SSE
- Customer types โ
POST ?action=sendโ message saved โ SSE broadcasts to both parties - Support agent sees message in admin panel โ replies โ SSE pushes to customer
- Auto-closes after 5 min (client auto-reconnects via EventSource)