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

Fix maxJoinAttempts in RTC Engine #838

Merged
merged 2 commits into from
Aug 17, 2023

Conversation

mpnri
Copy link
Contributor

@mpnri mpnri commented Aug 16, 2023

Hi.
We have a maxRetries property in RoomConnectOptions, but it seems we never use it to retry the connection. On the other hand, we have a maxJoinAttempts value in RTCEngine which is hard-coded and cannot be changed by room connect options.
This PR allows to set the maxJoinAttempts value through the maxRetries property in RoomConnectOptions.

@changeset-bot
Copy link

changeset-bot bot commented Aug 16, 2023

🦋 Changeset detected

Latest commit: ebd8af3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@CLAassistant
Copy link

CLAassistant commented Aug 16, 2023

CLA assistant check
All committers have signed the CLA.

@@ -191,6 +191,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
this.url = url;
this.token = token;
this.signalOpts = opts;
this.maxJoinAttempts = opts.maxRetries;
Copy link
Contributor

@lukasIO lukasIO Aug 16, 2023

Choose a reason for hiding this comment

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

thanks for spotting this!
It seems like only adding this line would be sufficient though?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah. You are right.
Fixed

@mpnri mpnri force-pushed the fix-maxJoinAttempts-in-RTC-Engine branch from 8cf5f49 to 0855422 Compare August 16, 2023 14:14
@lukasIO lukasIO merged commit a76ab94 into livekit:main Aug 17, 2023
3 checks passed
@github-actions github-actions bot mentioned this pull request Aug 17, 2023
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.

None yet

3 participants