HTML Server-Sent Events (SSE)
SSE allows a server to push updates to the browser.
Basic Example
const eventSource = new EventSource("events.php");
Important Notes
- One-way communication
- Uses HTTP
- Ideal for live updates
SSE allows a server to push updates to the browser.
const eventSource = new EventSource("events.php");