SSE Demo

Live demonstration of Server-Sent Events (SSE)

This page demonstrates real-time updates using Server-Sent Events (SSE).

Live Clock

The time below updates every second using SSE:

Current Time: 02:55:42

How it works

  • The server publishes time updates every second via the /stats endpoint
  • HTMX connects to the SSE stream and automatically updates the display
  • No JavaScript polling or manual refresh required