connect abstract method
void
connect(
- EventFluxConnectionType type,
- String url, {
- required dynamic onSuccessCallback(),
- Map<
String, String> header = const {'Accept' : 'text/event-stream'}, - dynamic onConnectionClose()?,
- bool autoReconnect = false,
- ReconnectConfig? reconnectConfig,
- dynamic onError()?,
- Map<
String, dynamic> ? body, - String? tag,
- 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,
});