HTML Server-Sent Events (SSE)

Article Summary

Learn how HTML Server-Sent Events enable real-time updates from server to browser.

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
Was this helpful?