KumihoClient constructor
- String host = 'localhost',
- int port = 8080,
- String? token,
- String? tenantId,
- ClientChannelBase? channel,
- ChannelOptions? options,
- 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,
);