User keep disconnect the socket server

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

Moderators: Lapo, Bax

mptsuei
Posts: 1
Joined: 16 May 2019, 04:45

User keep disconnect the socket server

Postby mptsuei » 16 May 2019, 04:52

Dear all
I have the HTML5 game connect the smartFOX socket server on Apache settings (PHP, My SQL). Two students were grouped in the same room. The total of students were 40. Students used the system and keep disconnect the socket server. They have to reconnect it again and again in during 40 minutes class.
Can anyone can help? Thank you very much.
User avatar
Lapo
Site Admin
Posts: 20723
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: User keep disconnect the socket server

Postby Lapo » 16 May 2019, 07:17

Hi,
did you check the cause of the disconnection from the client side? When the disconnection event is fired you're passed a "Reason" parameter that tells you what is the cause of the disconnection.

The server only disconnects client when they are idle for a set amount of time, other than time it will never close a connection. Especially in a local network disconnections should never happen.

Without any more details I can only propose two possible causes:

1) Clients are disconnected because of being idle. This is easily solved by increasing the idle settings in the server configuration (AdminTool > Server Settings > User Idle Time)

2) Clients are disconnected because of external issues in the local network. In this case you will need to investigate what is happening in your network.

Let us know
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 11 guests