Reconnection / disconnection
Hi Pomelo Team,
We are using Pomelo framework for multiplayer game, in this we are currently using Gate Connector for user authentication system. Due to network fluctuation we are facing lot of disconnection issue, on re connection it always check heartbeat and pass the user for authentication process from gate connector to the game server and there is lot of delay while reconnecting for the player to make connection to the server. So is there any token based authentication system so that if any user disconnect and try to reconnect then it only authenticate from the stored token and connect to game server. Therefore, is there any feasibility in Pomelo, for any token based authentication system? If so, can anyone help us with the libraries?
Please find below current structure we are using while reconnecting a player: Player > Gate > Connector > Room
What we are looking for: Player > Token > Room
The simplest Token is token = base64({uid:xx}),the Gate generate token.
Then in the connector entry interface, session.bind(decode(token).uid).
if Player reconnect, just pass token to connector entry.
The entry only accept token argument.
you can delete gate server. use slb or connector directly.