ServerpodClientShared constructor
ServerpodClientShared(
- String host,
- SerializationManager serializationManager, {
- dynamic context,
- AuthenticationKeyManager? authenticationKeyManager,
- bool logFailedCalls = true,
- Duration streamingConnectionTimeout = const Duration(seconds: 5),
Creates a new ServerpodClient.
Implementation
ServerpodClientShared(
this.host,
this.serializationManager, {
dynamic context,
this.authenticationKeyManager,
this.logFailedCalls = true,
this.streamingConnectionTimeout = const Duration(seconds: 5),
}) {
assert(host.endsWith('/'),
'host must end with a slash, eg: https://example.com/');
assert(host.startsWith('http://') || host.startsWith('https://'),
'host must include protocol, eg: https://example.com/');
}