Skip to content

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.

interface SseStreamingAction

SourceHttp/Sse/SseStreamingAction.php
MethodDescription
[`streamEvents(WebRequest $request): iterable<SseEventstring>`](#streamevents)

abstract public function streamEvents(WebRequest $request): iterable<SseEvent|string>

ParameterTypeDescription
$requestWebRequest

Returns iterable``<SseEvent|``string``>