SseClient class

Simple SSE client for Dart or Flutter (dart:io).

Constructors

SseClient.new(Uri uri, {String method = "POST", Map<String, String>? headers = const {}, required Client httpClient, Uint8List? body})

Properties

body Uint8List?
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
final
httpClient → Client
final
method String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<SseEvent>
Subscribe to Server-Sent Events.
no setter
uri Uri
final

Methods

close() Future<void>
Close the connection and controller.
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