Skip to content

fix(mobile): probe socket liveness on resume - #5118

Open
aidenalmazan1228-wq wants to merge 1 commit into
block:mainfrom
aidenalmazan1228-wq:fix/mobile-resume-live-refresh-signed
Open

fix(mobile): probe socket liveness on resume#5118
aidenalmazan1228-wq wants to merge 1 commit into
block:mainfrom
aidenalmazan1228-wq:fix/mobile-resume-live-refresh-signed

Conversation

@aidenalmazan1228-wq

@aidenalmazan1228-wq aidenalmazan1228-wq commented Aug 6, 2026

Copy link
Copy Markdown

Summary

  • probe the existing WebSocket with a bounded REQ/EOSE round trip after short app resumes
  • reconnect and replay live subscriptions when the transport is half-open
  • prevent stale probes from reconnecting a newer replacement connection

Why

iOS can suspend or rebind the network without delivering a close frame. Buzz then still reports the relay session as connected while new messages remain invisible until the app is force-closed.

Verification

  • flutter analyze
  • focused relay_session_test.dart suite
  • full mobile suite: 1,252 tests passed
  • signed commit with Aiden Almazan co-author and DCO trailer

This is the signed replacement for #4963, whose source commit lacks the required DCO trailer.

Detect half-open WebSocket sessions after short app background periods with a bounded REQ/EOSE probe. Reconnect and replay live subscriptions when the probe times out or errors.

Co-authored-by: Aiden Almazan <aiden.almazan1228@gmail.com>
Signed-off-by: Aiden Almazan <aiden.almazan1228@gmail.com>
@aidenalmazan1228-wq
aidenalmazan1228-wq force-pushed the fix/mobile-resume-live-refresh-signed branch from 9e29479 to b1c04d1 Compare August 6, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant