tezvyn:

Server-Sent Events (SSE): One-Way Data Push from Server

Source: developer.mozilla.orgintermediate

Server-Sent Events (SSE) push data from server to client over one HTTP connection. It's a simpler, one-way alternative to WebSockets for things like live news feeds or status updates.

Server-Sent Events (SSE) provide a simple way for a server to push real-time updates to a client over a single, persistent HTTP connection. Unlike the two-way street of WebSockets, SSE is strictly one-way communication. It's ideal for scenarios where the client is a passive receiver, like displaying live sports scores or build status notifications. The biggest footgun is the browser's strict limit on concurrent connections (often 6 per domain) over HTTP/1.1, which can break your app across multiple tabs.

Read the original → developer.mozilla.org

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Server-Sent Events (SSE): One-Way Data Push from Server · Tezvyn