dnsbty / level10

Phoenix LiveView multiplayer card game
https://level10.games
MIT License
72 stars 2 forks source link

Presence is inaccurate #55

Closed dnsbty closed 4 years ago

dnsbty commented 4 years ago

Currently Presence is inaccurate if a user opens a second session with the same player ID and then leaves either session.

Rather than store only if a user is present or not, we should maintain a count of the user's presences, and only remove them if that count reaches 0.