Reconnection

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

saiteja1412
Posts: 6
Joined: 11 Feb 2021, 11:03

Reconnection

Postby saiteja1412 » 31 Mar 2021, 09:13

How to handle the temporary network disconnection.

My sitiation:

Player is in the game. Suddenly wifi disabled or temporary network disables for 10 to 20 seconds. How to connect back to the same session when network available. I am using unity c#.

I am updating user variables while in the race. after reconnection i should able to update user variables.

Thanks in advance.
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Reconnection

Postby Lapo » 31 Mar 2021, 10:14

Hi,
I'd recommend reading this:
http://docs2x.smartfoxserver.com/Gettin ... n-hrc-plus

This isn't a solution for all disconnection issues but it can help in multiple situations.

If you want to learn more about this subject we also have two more articles here:
https://smartfoxserver.com/blog/what-re ... tworkwifi/
https://smartfoxserver.com/blog/handlin ... e-devices/

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Thomasea and 86 guests