KumihoClient constructor

KumihoClient({
  1. String host = 'localhost',
  2. int port = 8080,
  3. String? token,
  4. String? tenantId,
  5. ClientChannelBase? channel,
  6. ChannelOptions? options,
  7. bool secure = false,
})

Creates a new Kumiho client.

Either provide an existing channel, or specify host and port to create a new channel.

token is the authentication token (Firebase ID token). tenantId is the tenant ID for anonymous public access (passed as x-tenant-id header). secure enables TLS when true (required for production). options allows custom channel configuration.

Implementation

KumihoClient({
  String host = 'localhost',
  int port = 8080,
  String? token,
  String? tenantId,
  ClientChannelBase? channel,
  ChannelOptions? options,
  bool secure = false,
}) : super(
        clientChannel: channel,
        host: host,
        port: port,
        token: token,
        tenantId: tenantId,
        options: options,
        secure: secure,
      );