How to handle Client Timeout

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

How to handle Client Timeout

Fiercy
2017-07-19 15:53:10

Hello,

I working on a card game and I am wondering what should I do when the user put's the app in the background. Currently, after 15 seconds it will send a timeout message and no longer be connected to the room.

What should I do in this case?

Should use I OnDisconnectedFromPhoton() to reconnect?. Is there any examples online on how to handle this. I am not sure how to sync clients back after a timeout.

Comments

JohnTube
2017-07-20 08:44:59

Hi @Fiercy,

Thank you for choosing Photon!

Read more about this known issue here.

Back to top