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

feat: replacing polling for lobby updates with LobbyEvents [MTT-5425] #805

Merged
merged 34 commits into from
Apr 12, 2023

Conversation

LPLafontaineB
Copy link
Contributor

@LPLafontaineB LPLafontaineB commented Feb 3, 2023

Description

This PR removes the polling we are currently doing to get updates to the lobby we have joined. It instead replaces it with the LobbyEvent feature which uses Wire to create channels that clients can subscribe to. These channels then send updates only when it is needed. In doing so, we save a lot of bandwidth to the Lobby Service.

This PR also fixes a bug in the UpdateRunner that was using the wrong delta time when updating subscribers. This was causing the Heartbeat request we meant to send regularly to the Lobby Service to be sent much less frequently.

Issue Number(s)

MTT-5425

Contribution checklist

  • [n/a] Tests have been added for boss room and/or utilities pack
  • Release notes have been added to the project changelog file and/or package changelog file
  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • JIRA ticket ID is in the PR title or at least one commit message
  • Include the ticket ID number within the body message of the PR to create a hyperlink
  • An Index entry has been added in readme.md if applicable

@LPLafontaineB LPLafontaineB marked this pull request as ready for review February 7, 2023 14:36
@LPLafontaineB LPLafontaineB requested review from fernando-cortez and RikuTheFuffs and removed request for SamuelBellomo February 7, 2023 14:37
@LPLafontaineB LPLafontaineB added 1-Needs Review PR needs attention from the assignee and reviewers 2-hard This PR requires 2 reviewers labels Feb 7, 2023
CHANGELOG.md Outdated Show resolved Hide resolved
SamuelBellomo
SamuelBellomo previously approved these changes Mar 10, 2023
SamuelBellomo
SamuelBellomo previously approved these changes Mar 20, 2023
* issue was because it was being set before the call to the UI gameobject's Awake
@LPLafontaineB LPLafontaineB merged commit 5b40458 into develop Apr 12, 2023
@LPLafontaineB LPLafontaineB deleted the feature/lobby-events branch April 12, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-Needs Review PR needs attention from the assignee and reviewers 2-hard This PR requires 2 reviewers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants