getChannel method

ClientChannel getChannel()

Creates a new ClientChannel using the optional given options.

Implementation

ClientChannel getChannel() {
  return ClientChannel(
    host.replaceFirst(RegExp('http(s)?:\/\/'), ''),
    port: port,
    options: ChannelOptions(credentials: credentials),
  );
}