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'},
  5. dynamic onConnectionClose()?,
  6. bool autoReconnect = false,
  7. ReconnectConfig? reconnectConfig,
  8. dynamic onError(
    1. EventFluxException
    )?,
  9. Map<String, dynamic>? body,
  10. String? tag,
  11. bool logReceivedData = false,
})

Implementation

void connect(
  EventFluxConnectionType type,
  String url, {
  required Function(EventFluxResponse?) onSuccessCallback,
  Map<String, String> header = const {'Accept': 'text/event-stream'},
  Function()? onConnectionClose,
  bool autoReconnect = false,
  ReconnectConfig? reconnectConfig,
  Function(EventFluxException)? onError,
  Map<String, dynamic>? body,
  String? tag,
  bool logReceivedData = false,
});