enum ServerConnectionState { disconnected, connecting, connected, failed }