SSEStreamApi class

SSE stream API for Server-Sent Events (Hono-style).

Properties

hashCode int
The hash code for this object.
no setterinherited
isClosed bool
Whether the stream has been closed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Closes the stream.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAbort(void callback()) → void
Registers a callback for when the client disconnects.
sleep(Duration duration) Future<void>
Pauses execution for the specified duration.
toString() String
A string representation of this object.
inherited
writeComment(String comment) Future<void>
Writes a comment (for keep-alive).
writeSSE({required String data, String? event, String? id, int? retry}) Future<void>
Writes an SSE event.
writeSSEMessage(SSEMessage message) Future<void>
Writes an SSE message object.

Operators

operator ==(Object other) bool
The equality operator.
inherited