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

Lobby / Connector: Move game control to lobby #689

Open
Indy2222 opened this issue Aug 17, 2023 · 0 comments
Open

Lobby / Connector: Move game control to lobby #689

Indy2222 opened this issue Aug 17, 2023 · 0 comments

Comments

@Indy2222
Copy link
Collaborator

Indy2222 commented Aug 17, 2023

Currently, it is up to the client to create / join / leave games at both DE Lobby and DE Connector. This complicates the clients and it is prone to dis-synchronization & timing issues.

Fix this by moving the Lobby game handling responsibility to DE Lobby:

  1. User requests game JWT from DE Lobby
  • It is restricted to a particular username and game name.
  • It encodes URL of the particular DE Lobby.
  1. During game creation / game joining, the user passes this JWT to DE Connector.
  2. DE Connector uses this JWT and contacts DE Lobby API during the handling of game creation, user joining and user leaving.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant