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

refactor(clients): support multiple clients in tab/screen rendering infra #770

Merged
merged 2 commits into from
Oct 7, 2021

Conversation

imsnif
Copy link
Member

@imsnif imsnif commented Oct 7, 2021

This PR doesn't make any functional changes, but rather prepares the ground to support multiple users.

Main changes:

  1. Change the Render messages to pass around an Option<Output> instead of an Option<String> (the Output is a struct that holds a HashMap<ClientId, String> - right now its values are always identical)
  2. Move the Render instruction sending from Tab to Screen (to support clients being on different tabs in the future)
  3. Add a connected_clients attribute to tabs which they use for rendering and figuring out various conditionals.

@imsnif imsnif merged commit f2401d0 into main Oct 7, 2021
@har7an har7an deleted the refactor-clients branch October 23, 2022 15:06
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.

1 participant