pomelo icon indicating copy to clipboard operation
pomelo copied to clipboard

Reconnection / disconnection

Open pokermagnet opened this issue 7 years ago • 2 comments

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

pokermagnet avatar Oct 10 '18 14:10 pokermagnet

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.

whtiehack avatar Oct 11 '18 01:10 whtiehack

you can delete gate server. use slb or connector directly.

YunlongJiao-B avatar Jun 04 '20 11:06 YunlongJiao-B