Miscellaneous
sendSSEEvent()
Signature
Section titled “Signature”sendSSEEvent() — returns void
Available in: controller
Description
Section titled “Description”Send an SSE event through a streaming writer obtained from initSSEStream().
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
writer | any | yes | — | The writer object returned by initSSEStream(). |
data | string | yes | — | The event data to send. |
event | string | no | — | Optional event type name. |
id | string | no | — | Optional event ID. |
retry | numeric | no | 0 | Optional reconnection time in milliseconds. |