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! Your search result can be found below. Plus, we offer support via 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.

internet connection availability

JANESTHEKING
2016-05-04 11:18:04

Hello,
@Tobias , @vadim

when i started game than i have already internet available but in between my connection is lost so i want to give message to player so he /she can understand that due to lack of internet he/she has left the room or stuck in his/her app.

When i have displayer connection message it prints there "peer created" but it only check when it need i want that if user disconnects than direct notify that slow connection or you have lost internet connection. or if user connects with in some sort amount of time like 2 or 3 seconds and player should be joined previous game which he is playing if room is exists.

Help me to solve this how to reconnect player in real time game if user disconnects for 2 or 3 seconds.

Thank you.

Comments

vadim
2016-05-13 06:43:07

Hi,

You need to handle OnDisconnectedFromPhoton message. You can start new connection as soon as this message fired.

jeanfabre
2016-11-18 12:10:14

Hi,

check this http://forum.photonengine.com/discussion/8550/photon-not-disconnecting-if-we-disconnect-internet-while-connected#latest

it has a simple solution for watching loss of connectivity.

Bye,

Jean

Back to top