Skip to content

Conversation

@rahul-lohra
Copy link
Contributor

Goal

Fix the resubscription logic so that after the coordinator socket reconnects, active calls are correctly resubscribed and coordinator events are received again.

Implementation

  1. Reset the connectionId whenever the connection is either disconnected or transitioning to a connecting state.
  2. Ensure the coordinator socket processes all tasks serially by using Dispatchers.limitedParallelism(1).

Testing

  1. Open the demo app.
  2. Start a new call.
  3. Toggle the internet on and off.
  4. Send a reaction — it should appear as expected.
  5. Repeat steps 3 and 4; the behavior should remain consistent.

…disconnected

2. Coordinator socket will execute its task serially
@rahul-lohra rahul-lohra self-assigned this Dec 10, 2025
@rahul-lohra rahul-lohra requested a review from a team as a code owner December 10, 2025 06:20
@github-actions
Copy link
Contributor

github-actions bot commented Dec 10, 2025

PR checklist ✅

All required conditions are satisfied:

  • Title length is OK (or ignored by label).
  • At least one pr: label exists.
  • Sections ### Goal, ### Implementation, and ### Testing are filled.

🎉 Great job! This PR is ready for review.

@rahul-lohra rahul-lohra changed the title Restore call event subscriptions on socket reconnect [AND-949] Restore call event subscriptions on socket reconnect Dec 10, 2025
@rahul-lohra rahul-lohra changed the title [AND-949] Restore call event subscriptions on socket reconnect Restore call event subscriptions on socket reconnect Dec 10, 2025
@rahul-lohra rahul-lohra added the pr:improvement Enhances an existing feature or code label Dec 10, 2025
@github-actions
Copy link
Contributor

SDK Size Comparison 📏

SDK Before After Difference Status
stream-video-android-core 11.93 MB 11.94 MB 0.02 MB 🟢
stream-video-android-ui-xml 5.70 MB 5.68 MB -0.02 MB 🚀
stream-video-android-ui-compose 6.27 MB 6.27 MB 0.00 MB 🟢

@sonarqubecloud
Copy link

@aleksandar-apostolov aleksandar-apostolov merged commit ac21ad2 into develop Dec 10, 2025
16 of 20 checks passed
@aleksandar-apostolov aleksandar-apostolov deleted the bugfix/rahullohra/query-calls branch December 10, 2025 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:improvement Enhances an existing feature or code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants