ClientConfig constructor
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.
Note that headers are only used on platforms that support dart:io, so on web the headers will be ignored.
Implementation
ClientConfig({
this.token = '',
this.getToken,
this.data,
this.headers = const <String, dynamic>{},
this.tlsSkipVerify = false,
this.timeout = const Duration(seconds: 10),
this.minReconnectDelay = const Duration(milliseconds: 500),
this.maxReconnectDelay = const Duration(seconds: 20),
this.maxServerPingDelay = const Duration(seconds: 10),
this.name = 'dart',
this.version = '',
});