ClientConfig class

Configuration for a ClientRuntime.

Constructors

ClientConfig({required Uri hubUri, required CredentialProvider credentials, SecurityContext? securityContext, bool onBadCertificate(X509Certificate cert, String host, int port)?, Clock clock = const SystemClock(), void logger(String message)?})
Creates a client configuration.

Properties

clock Clock
The clock (overridable in tests).
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
onBadCertificate bool Function(X509Certificate cert, String host, int port)?
Optional TLS certificate override (pinning / self-signed test certs). null enforces standard verification.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
securityContext SecurityContext?
TLS trust roots for verifying the Hub certificate.
final

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