connect method

  1. @override
Future<void> connect()
override

Implementation

@override
Future<void> connect() async {
  const uri = 'ws://$kWorkerVmServiceHost:$kWorkerVmServicePort/ws';
  Log.i(_kTag, 'Connecting to vm service at $uri. Please ensure your Flutter app has port=$kWorkerVmServicePort');

  try {
    final vmService = await vmServiceConnectUri(uri, log: _MyLog());
    await _manager.vmServiceOpened(vmService);
  } catch (e, s) {
    Log.w(_kTag, 'init failed e=$e s=$s');
  }
}