internet connection availability
The whole answer can be found below.
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).
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
Hi,
You need to handle OnDisconnectedFromPhoton message. You can start new connection as soon as this message fired.
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