SSEClient class
A client for subscribing to Server-Sent Events (SSE).
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
-
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
Static Methods
-
subscribeToSSE(
{required SSERequestType method, required String url, required Map< String, String> header, StreamController<SSEModel> ? oldStreamController, Map<String, dynamic> ? body}) → Stream<SSEModel> - Subscribe to Server-Sent Events.
-
unsubscribeFromSSE(
) → void - Unsubscribe from the SSE.