SseStreamingAction
Actions implementing this interface bypass the normal Action/View dispatch entirely — DispatchMiddleware detects it and streams the returned events directly as a text/event-stream response, with no caching, validation short-circuiting, or View involved.
Synopsis
Section titled “Synopsis”interface SseStreamingAction
| Source | Http/Sse/SseStreamingAction.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
| [`streamEvents(WebRequest $request): iterable<SseEvent | string>`](#streamevents) |
streamEvents()
Section titled “streamEvents()”abstract public function streamEvents(WebRequest $request): iterable<SseEvent|string>
| Parameter | Type | Description |
|---|---|---|
$request | WebRequest |
Returns iterable``<SseEvent|``string``>