protocolConnect method

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

Implementation

@override
Future<void> protocolConnect() async {
  if (connectionAborted) {
    return;
  }

  final res = await _ioClient.post(Uri.parse('${uri.toString()}/_query'));
  if (res.statusCode == 401 || res.statusCode == 403) {
    throw Exception('You must have permission on the _query route.');
  }
}