Miscellaneous
channelSSETag()
Signature
Section titled “Signature”channelSSETag() — returns string
Available in: controller
Description
Section titled “Description”Generate a ‘script’ tag that creates an EventSource for a channel. Convenience view helper for quickly wiring up SSE in templates.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
channel | string | yes | — | The channel name. |
route | string | no | — | Named route for the SSE endpoint. |
controller | string | no | — | Controller name (used with action if no route). |
action | string | no | stream | Action name (default “stream”). |
events | string | no | — | Comma-delimited list of event types. |