connect abstract method

void connect(
  1. EventFluxConnectionType type,
  2. String url, {
  3. required dynamic onSuccessCallback(
    1. EventFluxResponse?
    ),
  4. Map<String, String> header = const {'Accept' : 'text/event-stream', 'Cache-Control' : 'no-store'},
  5. dynamic onConnectionClose()?,
  6. bool autoReconnect = false,
  7. ReconnectConfig? reconnectConfig,
  8. dynamic onError(
    1. EventFluxException
    )?,
  9. HttpClientAdapter? httpClient,
  10. Map<String, dynamic>? body,
  11. String? tag,
  12. bool logReceivedData = false,
  13. List<MultipartFile>? files,
  14. bool multipartRequest = false,
  15. WebConfig? webConfig,
  16. List<EventFluxInterceptor>? interceptors,
  17. 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,
});