Game Disconnect Reconnection
It takes about 5 minutes to read this article
This article outlines the reconnection mechanism after a disconnect situation in the published game.
What is Disconnected Reconnection
As with normal online games, Players may be disconnected during the game due to network fluctuations/errors, server reasons, etc. This feature will be available by default and the game automatic reconnect in the event of a disconnected situation. A successful reconnection continues the game and a failed reconnection disconnects the server.
What a disconnected reconnect contains
Disconnected
- Disconnected when the client is unable to communicate with the server due to network fluctuations/errors, server reasons, etc.
Reconnection
- A 10-second automatic reconnect is performed when a disconnected condition is judged, the successful reconnect continues the game, and the failed reconnect disconnects the server.
Disconnect from the server
- When the server fails to connect after 10 seconds of reconnecting, it is disconnected from the server. Players can opt out of the game or reconnect.
How to use Disconnect Reconnect appropriately
- Disconnected reconnection is provided by default without development
Important Notes and Recommendations for Using Disconnected Reconnection
During the game development
- Try not to execute the RPC function every frame. If you can't avoid it, consider reducing the frequency of execution.
- Do not call large numbers of RPC functions over a period of time, especially paying attention to RPC broadcast by the server
- Calling more than 255 RPC functions over a period of time causes network disconnection