establishSecureConnection method

  1. @override
Future<void> establishSecureConnection({
  1. required String userID,
})
override

Implementation

@override
Future<void> establishSecureConnection({required String userID}) async {
  final initialized = await _isInitialize();
  final started = await _isStarted();
  assert(initialized, 'Bridgefy is not initialized');
  assert(started, 'Bridgefy is not started');
  return methodChannel
      .invokeMethod('establishSecureConnection', {"userId": userID});
}