ClientConfig class

Contains the client configuration

Constructors

ClientConfig({String token = '', ConnectionTokenCallback? getToken, List<int>? data, Map<String, dynamic> headers = const <String, dynamic>{}, bool tlsSkipVerify = false, Duration timeout = const Duration(seconds: 10), Duration minReconnectDelay = const Duration(milliseconds: 500), Duration maxReconnectDelay = const Duration(seconds: 20), Duration maxServerPingDelay = const Duration(seconds: 10), String name = 'dart', String version = ''})
Creates a new client configuration.

Properties

data List<int>?
The data send for the first request
getter/setter pair
getToken ConnectionTokenCallback?
Callback to get/refresh tokens
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>
Headers that are set when connecting the web socket on dart:io platforms.
final
maxReconnectDelay Duration
final
maxServerPingDelay Duration
final
minReconnectDelay Duration
final
name String
The user's name
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
The connection timeout
final
tlsSkipVerify bool
final
token String
The initial token used for authentication
getter/setter pair
version String
The current version
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