MasterConnectClosed

Hello.
When I press the Home button on my smartphone and after a few seconds I return to the game, I am thrown out of the room and the MasterConnectClosed error occurs.
I would like to stay in the game when I return.
Could you advise something? I'm making a game for Solar 2d(Corona SDK)

Comments

  • Maybe you can somehow change the Peer time?
  • To stay connected, the client should call LoadBalancingClient.Service() regularly. If this does not happen for a few sec., the server disconnects. Is it possible to call service() it in background at least once in a second?
    Otherwise, you can reconnect with the same actor number as soon as MasterConnectClosed fired.