DigitalExtinction/Game

Lobby / Connector: Move game control to lobby

Indy2222 opened this issue · 1 comments

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.