connect method

  1. @override
Future<bool> connect(
  1. String config
)
override

Connect using this engine

Implementation

@override
Future<bool> connect(String config) async {
  if (!isSupported) {
    throw UnsupportedError('SingBox is not supported on this platform');
  }

  try {
    return await _iosEngine.connectSingBox(config: config);
  } catch (e) {
    print('SingBox connect error: $e');
    return false;
  }
}