Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding automatic reconnection mechanism to LiveKit implementation #419

Open
4 of 6 tasks
shwetd19 opened this issue Jan 27, 2025 · 1 comment · May be fixed by #420
Open
4 of 6 tasks

Adding automatic reconnection mechanism to LiveKit implementation #419

shwetd19 opened this issue Jan 27, 2025 · 1 comment · May be fixed by #420

Comments

@shwetd19
Copy link

shwetd19 commented Jan 27, 2025

🐛 Describe the bug

Issue Description

Current Behavior

Currently, when a user loses connection to a LiveKit room (due to network issues or other disruptions), the application does not attempt to automatically reconnect. This results in a poor user experience as users need to manually rejoin the room or restart the application.

Problem Impact

  • Users are disconnected from rooms without recovery options
  • Manual intervention required to rejoin rooms
  • Poor user experience in unstable network conditions
  • No feedback to users about connection status

Proposed Solution

Implement an automatic reconnection mechanism that:

  • Attempts to reconnect automatically when connection is lost
  • Provides user feedback during reconnection attempts
  • Gracefully handles failed reconnection scenarios

Technical Requirements

  1. Maximum of 3 reconnection attempts
  2. 2-second delay between attempts
  3. User notifications for connection status
  4. Proper cleanup of connection attempts when leaving room
  5. Connection state tracking using GetX observables

Acceptance Criteria

  • Application automatically attempts to reconnect when connection is lost
  • Users receive visual feedback about connection status
  • Reconnection attempts stop after maximum tries or successful connection
  • All resources are properly cleaned up on room exit
  • Connection state is properly tracked and observable
  • Code is properly tested and documented

@shwetd19 shwetd19 linked a pull request Jan 27, 2025 that will close this issue
10 tasks
@shwetd19
Copy link
Author

Hey @AyaNady17 @Aarush-Acharya can you please check this once, please let me know if any changes are required, Thanks!

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 a pull request may close this issue.

1 participant