connect abstract method
void
connect(
- EventFluxConnectionType type,
- String url, {
- required dynamic onSuccessCallback(),
- Map<
String, String> header = const {'Accept' : 'text/event-stream', 'Cache-Control' : 'no-store'}, - dynamic onConnectionClose()?,
- bool autoReconnect = false,
- ReconnectConfig? reconnectConfig,
- dynamic onError()?,
- HttpClientAdapter? httpClient,
- Map<
String, dynamic> ? body, - String? tag,
- bool logReceivedData = false,
- List<
MultipartFile> ? files, - bool multipartRequest = false,
- WebConfig? webConfig,
- List<
EventFluxInterceptor> ? interceptors, - Future<
void> ? abortTrigger,
Implementation
void connect(
EventFluxConnectionType type,
String url, {
required Function(EventFluxResponse?) onSuccessCallback,
Map<String, String> header = const {'Accept': 'text/event-stream', 'Cache-Control': 'no-store'},
Function()? onConnectionClose,
bool autoReconnect = false,
ReconnectConfig? reconnectConfig,
Function(EventFluxException)? onError,
HttpClientAdapter? httpClient,
Map<String, dynamic>? body,
String? tag,
bool logReceivedData = false,
List<MultipartFile>? files,
bool multipartRequest = false,
WebConfig? webConfig,
List<EventFluxInterceptor>? interceptors,
Future<void>? abortTrigger,
});