Skip to content

Miscellaneous

sendSSEEvent()

sendSSEEvent() — returns void

Available in: controller

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

NameTypeRequiredDefaultDescription
writeranyyesThe writer object returned by initSSEStream().
datastringyesThe event data to send.
eventstringnoOptional event type name.
idstringnoOptional event ID.
retrynumericno0Optional reconnection time in milliseconds.