SseTransportConfig constructor
const
SseTransportConfig({
- required String serverUrl,
- Map<
String, String> ? headers, - Duration? connectionTimeout,
- Duration? heartbeatInterval,
- OAuthConfig? oauthConfig,
- OAuthToken? oauthToken,
- String? bearerToken,
- bool enableCompression = false,
- bool enableGzip = true,
- bool enableDeflate = true,
- int compressionLevel = 6,
- 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,
});