Xconfess/Xconfess

[Wave 6] Add polling fallback for read receipts when messaging WebSocket disconnects

Aperta

#1668 aperta il 28 lug 2026

 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (187 fork)auto 404
Frontendhelp wantedresilienceux

Metriche repository

Star
 (14 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Problem

Private messaging's read-receipt and typing indicators rely entirely on the live WebSocket connection. When the socket drops, both features silently stop updating with no fallback, and the UI gives no indication the feature is degraded.

Tasks

  • Add a visible "reconnecting" state in the message thread UI when the socket disconnects
  • Fall back to short-interval polling for read-receipt status while disconnected (not typing indicators — those can simply disable while offline)
  • Resume WebSocket-driven updates and cancel polling once reconnected
  • Disable the typing indicator input event entirely while disconnected rather than showing stale state

Acceptance Criteria

  • Killing the WebSocket connection in dev tools shows a reconnecting indicator within 2s
  • Read receipts still update (via polling) during the disconnected window
  • No stale/incorrect typing indicator is shown while disconnected

Labels

Frontend, ux, resilience, help wanted, Stellar Wave

Guida contributor