Swiftybase
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-constructed SSEEvent 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 the event: 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
    A bool value indicating whether the SSE connection is still active.

On this page