Client constructor

Client(
  1. {Config config}
)

Create a new Client with given config

Implementation

Client({Config config}) {
  _uuid = Uuid();
  if (config == null) {
    config = Config();
  }
  _host = config.host;
  _port = config.port;
  _channel = ClientChannel(_host,
      port: _port,
      options:
        ChannelOptions(credentials: config.credentials));
      _stub = APIClient(
        _channel,
        options: config.getCallOptions()
      );
}