SSEStreamApi class
SSE stream API for Server-Sent Events (Hono-style).
Properties
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