Skip to content

Miscellaneous

sendSSEEvent()

sendSSEEvent() — returns void

Available in: controller

Send an SSE event through a streaming writer obtained from initSSEStream().

NameTypeRequiredDefaultDescription
writeranyyes—The writer object returned by initSSEStream().
datastringyes—The event data to send.
eventstringno—Optional event type name.
idstringno—Optional event ID.
retrynumericno0Optional reconnection time in milliseconds.