You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the server in broadcast mode and I faced an issue: if my client does not send any to the server for 5 sec, the server initials the client disconnection.
I have a step-based game. And the client has 30 secs to think before the moving. I don't send any action to the server during that time. All the game states got from the server in broadcast mode. But my client disconnects all the time if there are no messages from the client for 5 secs. Could you make _connectionTimeout an optional parameter, please?
The text was updated successfully, but these errors were encountered:
I do agree that the timeout should be optional, but for game netcode you should keep the connection alive by passing a KeepAlive packet both ways.
This allows you to calculate pings on both sides and even in a step-based games this has some merit as you want to know earlier than later if a client is connected or not.
Hi,
Thank you for the project. Very helpful
On the server side of your project there is a code:
I'm trying to use the server in broadcast mode and I faced an issue: if my client does not send any to the server for 5 sec, the server initials the client disconnection.
I have a step-based game. And the client has 30 secs to think before the moving. I don't send any action to the server during that time. All the game states got from the server in broadcast mode. But my client disconnects all the time if there are no messages from the client for 5 secs. Could you make _connectionTimeout an optional parameter, please?
The text was updated successfully, but these errors were encountered: