How can I make a player reconnect to a game when his internet connection is slow or disconnected?

Options
Hey i just want to know, how can i make a player still be connected in the game when his internet fluctuates. Lets say if two players are playing against each other in an 8 ball pool game and player1 lost internet connection, how can we give time to him to reconnect without just kicking him out of the room?

Thanks in advance!

Answers

  • Djebedia
    Options
    Hi!
    You should set playerTTL in room properties - this will keep player state inside the room for some time after player disconnects.
    Then you could use PhotonNetwork.ReconnectAndRejoin() on the disconnected player to reconnect to Master and rejoin the room.
    And then all you have to do is to solve dozens of problems of synchronyzing player states and etc. :)