Function StackSSE
Send SSE
Sends an SSE event to a connected client over an active SSEController
.
Config
-
SSE Controller
The controller instance that manages the current SSE connection. Required to send events. -
Event (optional)
A pre-constructedSSEEvent
instance. If provided, the individual fields below will be ignored. -
Id
Optional unique identifier for the event. Useful for reconnection and deduplication. -
Type
The name/type of the event. This appears in theevent:
field of the SSE payload on the client. -
Data
The message payload (can be text or JSON). This is the content delivered to the client. -
Retry
Optional reconnection interval. Informs the client how long to wait before retrying if the connection is lost.
Output
- Returns
Abool
value indicating whether the SSE connection is still active.