Can reconnect player recieve only the RPC buffered after he disconnected?

Options
Hi,
I`m doing a turnbased game using only RPC. The reconnection of the player was working fine if he reconnect before any rpc happens during his disconnection.
To handle this I buffered all the RPCs. But now, he recieves all the RPCs from the begining of the game. How can I make him recieve the RPCs that happened only after he disconnect? Is it possible?

Thanks.

Comments

  • Hi @Cabjhegas,

    no, this is not possible. Please also note, that the client's buffered RPCs will also get removed from the server's cache, if his PlayerTTL is exceeded. If you allow clients, to join late in the game, this might cause lots of trouble. So you may have to think about another solution. Maybe you can use the MasterClient, to send the game state to newly connected player. You can use the void OnPhotonPlayerConnected(PhotonPlayer newPlayer) callback therefore.
  • Cabjhegas
    Options
    We are going this way. Thank you!