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

Allow set connect retry to connect function #350

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mohsen2986
Copy link

In certain scenarios, users may encounter connectivity issues that prevent them from joining a room. Implementing a simple retry mechanism can effectively resolve these issues.

@@ -132,7 +135,10 @@ class LiveKit {
val protocolVersion = maxOf(options.protocolVersion, ProtocolVersion.v7)
val connectOptions = options.copy(protocolVersion = protocolVersion)

room.connect(url, token, connectOptions)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be added to the room.connect function itself rather than this one. LiveKit.connect is deprecated and will be removed in the future.

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.

2 participants