SseClient class

A client for Server-Sent Events (SSE).

Constructors

SseClient([Client? client])
Creates a new SseClient.

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(Uri uri, {String method = 'GET', Map<String, String>? headers, Object? body}) Stream<SseEvent>
Connects to the SSE endpoint and yields SseEvents.
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