TransmitOptions constructor
TransmitOptions({
- required String baseUrl,
- String uidGenerator()?,
- dynamic eventSourceFactory(})?,
- TransmitHttpClient httpClientFactory()?,
- void beforeSubscribe(
- Request
- void beforeUnsubscribe(
- Request
- int? maxReconnectAttempts,
- Duration? reconnectInitialDelay,
- Duration? reconnectMaxDelay,
- double? reconnectBackoffMultiplier,
- double? reconnectJitterFactor,
- void onReconnectAttempt()?,
- void onReconnectFailed()?,
- void onReconnecting()?,
- void onReconnected()?,
- void onDisconnected()?,
- void onSubscribeFailed(
- Response
- void onSubscription()?,
- void onUnsubscription()?,
- 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,
});