connect method

  1. @override
Future<void> connect()

Connect to the underlying transport.

Implementation

@override
Future<void> connect() async {
  _channel = ClientChannel(
    options.host,
    port: options.port,
    options:
        options.channelOptions ??
        ChannelOptions(
          credentials: ChannelCredentials.insecure(),
        ),
  );
  _clients.addAll(options.clients?.call(_channel!) ?? []);
}