]> git.cworth.org Git - lmno-server/commit
base.html: Add a new ReconnectingEventSource
authorCarl Worth <cworth@cworth.org>
Mon, 9 Mar 2026 01:55:39 +0000 (21:55 -0400)
committerCarl Worth <cworth@cworth.org>
Mon, 9 Mar 2026 01:55:39 +0000 (21:55 -0400)
commitbcc712927952752816812862de762c512c4dde5a
tree9a451813fe880ee67f39e6ec6b5b4bf08ab4f338
parent824c8e36f36d5b7dbfce9b6fa1918386b7a92a36
base.html: Add a new ReconnectingEventSource

We originally implemented this in lmno.js in the client, but realized
it needs to be present in base.html.

This wrapper for EventSource will attempt to reconnect after a lost
connection (up to 5 times with a 2-second delay between each attempt).

With this in place, a quick server restart (< 10 seconds) should be
unnoticed by clients.
templates/base.html