Back to RIFE2

Server-Sent Events

The time below is pushed from the server once per second over a single SSE connection, using RIFE2's SseBroadcaster. The tap tally is shared: a tap from anyone is broadcast to everyone. No polling, no page reloads. Open this page in a second tab and watch both stay in sync.

18:04:05

29 taps from everyone watching

View the source: DemoRouter.java and its template: sse.html

The clock and the tap tally are both streamed live by rife2.com itself.