TransmitOptions constructor

TransmitOptions({
  1. required String baseUrl,
  2. String uidGenerator()?,
  3. dynamic eventSourceFactory(
    1. Uri, {
    2. bool withCredentials,
    })?,
  4. TransmitHttpClient httpClientFactory(
    1. String baseUrl,
    2. String uid
    )?,
  5. void beforeSubscribe(
    1. Request
    )?,
  6. void beforeUnsubscribe(
    1. Request
    )?,
  7. int? maxReconnectAttempts,
  8. Duration? reconnectInitialDelay,
  9. Duration? reconnectMaxDelay,
  10. double? reconnectBackoffMultiplier,
  11. double? reconnectJitterFactor,
  12. void onReconnectAttempt(
    1. int
    )?,
  13. void onReconnectFailed()?,
  14. void onReconnecting()?,
  15. void onReconnected()?,
  16. void onDisconnected()?,
  17. void onSubscribeFailed(
    1. Response
    )?,
  18. void onSubscription(
    1. String
    )?,
  19. void onUnsubscription(
    1. String
    )?,
  20. Duration? heartbeatTimeout,
})

Implementation

TransmitOptions({
  required this.baseUrl,
  this.uidGenerator,
  this.eventSourceFactory,
  this.httpClientFactory,
  this.beforeSubscribe,
  this.beforeUnsubscribe,
  this.maxReconnectAttempts,
  this.reconnectInitialDelay,
  this.reconnectMaxDelay,
  this.reconnectBackoffMultiplier,
  this.reconnectJitterFactor,
  this.onReconnectAttempt,
  this.onReconnectFailed,
  this.onReconnecting,
  this.onReconnected,
  this.onDisconnected,
  this.onSubscribeFailed,
  this.onSubscription,
  this.onUnsubscription,
  this.heartbeatTimeout,
});