FlintWebSocketClient constructor
FlintWebSocketClient(
- String url, {
- Map<
String, dynamic> ? params, - String? token,
- AuthTokenProvider? tokenProvider,
- bool debug = false,
- bool sendTokenAsQuery = false,
- String queryTokenKey = 'token',
- Duration heartbeatInterval = const Duration(seconds: 25),
- Duration pongTimeout = const Duration(seconds: 30),
- int maxReconnectAttempts = 5,
Implementation
FlintWebSocketClient(
this.url, {
this.params,
String? token,
AuthTokenProvider? tokenProvider,
this.debug = false,
this.sendTokenAsQuery = false,
this.queryTokenKey = 'token',
this.heartbeatInterval = const Duration(seconds: 25),
this.pongTimeout = const Duration(seconds: 30),
this.maxReconnectAttempts = 5,
}) : _token = token,
_tokenProvider = tokenProvider;