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 configuration of MatrixRTC timers when calling joinRoomSession() #4510

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

hughns
Copy link
Member

@hughns hughns commented Nov 11, 2024

Not all of the new config options are being tested, but the code coverage is still reached.

The use of Math.random() that is flagged by SonarCloud is acceptable.

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

@hughns hughns added the T-Feature Request to add a new feature which does not exist right now label Nov 11, 2024
@hughns hughns added T-Enhancement and removed T-Feature Request to add a new feature which does not exist right now labels Nov 11, 2024
@hughns hughns marked this pull request as ready for review November 11, 2024 14:16
@hughns hughns requested a review from a team as a code owner November 11, 2024 14:16
Copy link
Contributor

@toger5 toger5 left a comment

Choose a reason for hiding this comment

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

Looks very good. Thanks.
Not sure what you think about the naming preference I mentioned in the review.
Merging as it is now is also fine to me.

* The timeout (in milliseconds) after which the server will consider the membership to have expired if it
* has not received a keep-alive from the client.
*/
membershipServerSideExpiryTimeout?: number;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think it is beneficial to use sth close to the delay event terminology since this is what one would look out for to configure the even delay timeout?

/**
* The period (in milliseconds) that the client will send membership keep-alives to the server.
*/
membershipKeepAlivePeriod?: number;
Copy link
Contributor

Choose a reason for hiding this comment

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

here something with refresh

@hughns
Copy link
Member Author

hughns commented Nov 11, 2024

My thinking on the naming is that we choose things that make sense with respect to MatrixRTC concepts. But, as you say it can be argued out and refactored later if needed.

@hughns hughns added this pull request to the merge queue Nov 11, 2024
Merged via the queue into develop with commit 581b320 Nov 11, 2024
52 of 56 checks passed
@hughns hughns deleted the hughns/matrixrtc-join-session-config branch November 11, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants