EventFluxBase class abstract
Abstract base class for EventFlux connection management.
This class defines the core interface for managing connections in an EventFlux implementation. It declares methods for connecting, disconnecting, and reconnecting to an event stream.
Implementing classes are expected to provide concrete implementations for these methods, adhering to the behavior and specifications outlined here.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
EventFluxConnectionType type, String url, {required dynamic onSuccessCallback(EventFluxResponse?), Map< String, String> header = const {'Accept' : 'text/event-stream', 'Cache-Control' : 'no-store'}, dynamic onConnectionClose()?, bool autoReconnect = false, ReconnectConfig? reconnectConfig, dynamic onError(EventFluxException)?, 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}) → void -
disconnect(
) → Future< EventFluxStatus> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited