Use Hono framework with SSE (Server Sent Event)
cd app/
npx bun install
npx bun run dev
Open in browser, Inspect > Network tab to observe SSE events
open public/index.html
Receive SSE events with curl
curl http://localhost:3000/sse
Output
retry: 1000
id: 0
data: hello
id: 1
data: world
event: close
data: close