ClientConfig class
Configuration for a ClientRuntime.
Constructors
- ClientConfig({required Uri hubUri, required CredentialProvider credentials, ConnectionFactory? connectionFactory, Clock clock = const SystemClock(), void logger(String message)?, void onDisconnected()?})
- Creates a client configuration.
Properties
- clock → Clock
-
The clock (overridable in tests).
final
- connectionFactory → ConnectionFactory?
-
Opens the transport to hubUri. When
null, the platform default is used: adart:iowss://socket on the VM, or the browser WebSocket on the web. Native callers that need TLS trust overrides (self-signed certs, pinning) passioConnectionFactory(...)frominfrastructure/transport/io_connection_factory.dart.final - credentials → CredentialProvider
-
How the client authenticates to the Hub.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hubUri → Uri
-
The Hub WebSocket URL (
wss://host:port/...).final - logger → void Function(String message)?
-
Optional diagnostic logger.
final
- onDisconnected → void Function()?
-
Called when the connection to the Hub drops (after pending operations are
failed). Fires on both unexpected loss and an explicit ClientRuntime.close;
callers that need to distinguish should track their own intent.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited