namespace UniScan.Client.Core.Remote.Connection; public enum ConnectionState { /// /// Connecting to the server /// Connecting, /// /// Connected, but handshaking /// Handshaking, /// /// Connected, with handshake accepted /// Connected, /// /// Not yet connected /// NotConnected, /// /// Disconnected via user input /// UserDisconnected, /// /// Disconnected due to server kicking the client /// KickedDisconnected, /// /// Disconnected unexpectedly, happens when the socket dies unexpectedly or some exception is thrown /// UnexpectedDisconnected }