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

Restart lobby resurrection #376

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Conversation

Bios-Marcel
Copy link
Member

@Bios-Marcel Bios-Marcel commented Jan 5, 2025

TODO

  • Introduce optional encryption

    Forcing this might break existing deployments and a default secret for encryption would useless.
    Generating a secret based on machine details, such as a MAC Address might be unreliable in
    a world with ephemeral VMs and Docker containers.

  • Don't accept new connections during shutdown
  • Write unit tests
    • UserSession Changes
      • GetPlayer
      • kickPlayer
    • Resurrect
      • Make sure the lobby is fully functional, simulate gameflow with real sockets

An issue I encountered is, that the current implementation becomes useless once a user manually pressed F5. To solve this, a custom lobby gone page is required OR the lobby needs to be able to show even for an empty lobby.

The latter would be more consistent UI wise. But this means that upon resurrection, the lobby needs to reload, as some of the templated state won't be available.

Fixes #371

* Throw out easyjson, the generator bugs annoyed me
* move usersessions into the lobby for resurrection
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.

Ephemeral state should survive restart
1 participant