connect method

Future<void> connect()

Implementation

Future<void> connect() async {
  try {
    _status = RemoteDevToolsStatus.connecting;
    socket = await Socket.connect(
      _url,
      listener: SocketListener(),
    );

    _status = RemoteDevToolsStatus.connected;
    _channel = await _login();
    _status = RemoteDevToolsStatus.starting;
    _relay(DevConstant.start);
    _waitForStart();
  } catch (e) {
    log('Must Run Devtools Correctly to continue');
  }
}