FlintWebSocketClient constructor

FlintWebSocketClient(
  1. String url, {
  2. Map<String, dynamic>? params,
  3. String? token,
  4. AuthTokenProvider? tokenProvider,
  5. bool debug = false,
  6. bool sendTokenAsQuery = false,
  7. String queryTokenKey = 'token',
  8. Duration heartbeatInterval = const Duration(seconds: 25),
  9. Duration pongTimeout = const Duration(seconds: 30),
  10. 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;