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

Reconnection / disconnection #1116

Open
pokermagnet opened this Issue Oct 10, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@pokermagnet

pokermagnet commented Oct 10, 2018

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

@whtiehack

This comment has been minimized.

Show comment
Hide comment
@whtiehack

whtiehack Oct 11, 2018

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 commented Oct 11, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment