TL;DR
SSE is a one-way stream from server to browser over plain HTTP — simpler than a [[websocket]], far more efficient than [[http-polling]], and enough for delivering chat messages to a widget.
Key Points
✓
SSE is part of the HTML standard and is consumed in the browser through the built-in EventSource API — no library required [1][2].
✓
It is one-directional: the server streams to the browser, while the browser sends messages back with ordinary HTTP requests [1].
✓
The browser reconnects automatically if the stream drops, and replays from a Last-Event-ID header so no messages are lost in the gap [1][2].
✓
SSE rides on normal HTTP, so it passes through proxies, CDNs, and corporate firewalls that sometimes block a [[websocket]] upgrade.
✓
The payload is UTF-8 text only; binary data has to be encoded, which is rarely a limitation for a [[chat-message]].
✓
Compared with [[http-polling]], SSE removes the tradeoff between latency and request volume — updates arrive the moment they exist.
How SSE works
SSE versus WebSocket versus polling
Why it matters for a chat widget
Sources & References
Last updated: August 12, 2026
Related Terms
WebSocket
WebSocket is a protocol (standardized as RFC 6455) that opens a single, persistent, full-duplex connection between a browser and a server, letting either side push data at any time without re-issuing HTTP requests. It is the transport many real-time apps reach for when they need low-latency, bidirectional messaging.
HTTP Polling
HTTP polling is a real-time technique where the client repeatedly sends HTTP requests on a fixed interval to ask the server whether new data is available, instead of holding a persistent connection. Eloqra's chat widget uses short polling roughly every 4-5 seconds to fetch new messages and typing state.
Webhook
A webhook is a user-defined HTTP callback: instead of polling for data, an application registers a URL that a source service calls with an HTTP POST request the moment a specific event happens. [1] In Eloqra, a webhook is how an operator's Telegram reply travels back into the chat widget.
REST API
A REST API is a web interface that lets two systems exchange data over HTTP by treating each piece of data as a resource addressed by a URL and acted on with standard methods like GET, POST, PUT, and DELETE. It follows the Representational State Transfer architectural style, which favors stateless, uniform, cacheable interactions between client and server.
JavaScript Widget
A JavaScript widget is a self-contained chunk of front-end code, loaded from a single script tag, that injects an interactive UI into any third-party web page. In Eloqra it is the live-chat widget that boots from one snippet and renders the chat launcher and conversation panel directly on a customer's site.
Live Chat Widget
A live chat widget is the embeddable, in-browser chat interface a website loads from a small script so visitors can message a business in real time without leaving the page. In Eloqra it is a floating launcher and chat panel that boots from a single <script> tag and renders inside a Shadow DOM.
More in Widget, Integration & Privacy
Put live chat on your site in 30 seconds
Eloqra gives you a lightweight live chat widget that routes every visitor message to your Telegram — free while in early access.
Get Started FreeMore in Widget, Integration & Privacy
View all in Widget, Integration & Privacy →Categories
Learn More
Guides on collecting testimonials, building trust, and turning customer feedback into social proof.
Read the blog →