SseTransportConfig constructor

const SseTransportConfig({
  1. required String serverUrl,
  2. Map<String, String>? headers,
  3. Duration? connectionTimeout,
  4. Duration? heartbeatInterval,
  5. OAuthConfig? oauthConfig,
  6. OAuthToken? oauthToken,
  7. String? bearerToken,
  8. bool enableCompression = false,
  9. bool enableGzip = true,
  10. bool enableDeflate = true,
  11. int compressionLevel = 6,
  12. int maxMissedHeartbeats = 3,
})

Implementation

const SseTransportConfig({
  required this.serverUrl,
  this.headers,
  this.connectionTimeout,
  this.heartbeatInterval,
  this.oauthConfig,
  this.oauthToken,
  this.bearerToken,
  this.enableCompression = false,
  this.enableGzip = true,
  this.enableDeflate = true,
  this.compressionLevel = 6,
  this.maxMissedHeartbeats = 3,
});