Better client connection state #749
passaport
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a suggestion to improve how the network connection state is represented for the client. Currently, it’s defined as an enum with four states, but I believe these states don’t fully capture all possible scenarios.
For example, if the client attempts to connect to the server and fails, the client transitions to the 'Stopping' and 'Stopped' states. However, these states don't differentiate whether the disconnection was due to a failed connection attempt or because the server disconnected the client.
To address this, I recommend adding a string field to indicate the specific reason for the disconnection. This string could be set by the network manager when a connection fails or by the server if it initiates the disconnection. This would provide clearer insights into why the disconnection occurred.
Beta Was this translation helpful? Give feedback.
All reactions