Live-updates dot: connected only once an event arrives (ihasmail #73) #93

Merged
jcoffey-dev merged 1 commits from fix/push-dot-honest into main 2026-11-15 00:40:37 +00:00
Owner

Port of coffey-labs/ihasmail#73, reported in coffey-labs/ihasmail#71. Follow-up to #92.

After #92 the relay answers before the mail server does, so the dot went green on open even when nothing ever arrived. Now it turns green on the first ping or state event, the backoff resets there too, and fan-out tabs get a ping from us when they join.

Port of coffey-labs/ihasmail#73, reported in coffey-labs/ihasmail#71. Follow-up to #92. After #92 the relay answers before the mail server does, so the dot went green on open even when nothing ever arrived. Now it turns green on the first ping or state event, the backoff resets there too, and fan-out tabs get a ping from us when they join.
jcoffey-dev added 1 commit 2026-11-15 00:37:23 +00:00
Live-updates dot: connected only once an event arrives (ihasmail #73)
ci / node (pull_request) Skipped
ci / version (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 2m46s
ci / docker-build (pull_request) Skipped
ci / publish (pull_request) Skipped
ci / announce (pull_request) Skipped
c14b14aa5e
Since the relay answers the browser before the mail server has, an open
stream no longer proves anything: when the server never answers, the
dot would turn green while no updates arrive. The client now shows
"connected" on the first ping or state event instead of on open, and
resets its backoff there too, so a stream that opens and ends at once
keeps backing off instead of retrying every second.

Relayed tabs get the server's own first ping. Fan-out has no upstream
ping, so we send one when a tab joins fan-out, directly or by moving off
the relay.

Reported in coffey-labs/ihasmail#71.

(cherry picked from commit 3661e0fd2365bd616ff5f47bd729c826948cae29)
jcoffey-dev merged commit 0f532b09e4 into main 2026-11-15 00:40:37 +00:00
jcoffey-dev deleted branch fix/push-dot-honest 2026-11-15 00:40:37 +00:00
Sign in to join this conversation.