๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Web Development Intermediate

What is Server-Sent Events?

A server push technology that enables a server to send real-time updates to a browser over a single HTTP connection.

SSE provides a simple, unidirectional channel from server to client. The server sends events as text/event-stream content type. The browser uses EventSource API: const source = new EventSource('/events'); source.onmessage = e => console.log(e.data).

SSE is simpler than WebSockets for one-way communication (notifications, live feeds, stock tickers). It supports automatic reconnection, event IDs for resume, and named events. SSE uses standard HTTP, working through firewalls and proxies without special configuration.

Related Terms

Sitemap XML
An XML file that lists all important URLs on a website, helping search engines discover and crawl content efficiently.
HTTP/2
The second major version of HTTP that improves performance through multiplexing, header compression, and server push.
Server-Sent Events (SSE)
A web technology enabling servers to push real-time updates to browsers over a single HTTP connection, simpler than WebSockets.
TypeScript
A typed superset of JavaScript that adds static type checking, interfaces, and advanced IDE support to JavaScript development.
Caching
Storing copies of frequently accessed data in faster storage to reduce load times and server processing.
JSON
JavaScript Object Notation โ€” a lightweight data interchange format that is easy for humans to read and machines to parse.
View All Web Development Terms โ†’