disconnect static method
Disconnect (legacy method)
Implementation
static Future<void> disconnect() async {
try {
final engine = VpnEngineFactory.create(EngineType.libxray);
if (engine != null) {
await engine.disconnect();
}
_updateConnectionStatus(ConnectionStatus.disconnected);
} catch (e) {
print('Error disconnecting: $e');
}
}