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

Change Room structure so we can look up clients in the room more efficiently #3

Open
shankarammai opened this issue Aug 14, 2024 · 0 comments

Comments

@shankarammai
Copy link
Owner

Possibly change structure to below so we can efficiently get clients of a room.

type Room struct {
    Id      string
    Name    string
    Clients map[string]*Client
    Creator string
}

This can possibly improve performance in the clean up code when clients leaves the room.
When sending room data to customers only send [string,string].

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

No branches or pull requests

1 participant