Lobby / Connector: Move game control to lobby
Indy2222 opened this issue · 1 comments
Indy2222 commented
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:
- 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.
- During game creation / game joining, the user passes this JWT to DE Connector.
- DE Connector uses this JWT and contacts DE Lobby API during the handling of game creation, user joining and user leaving.