Preview
LivePill truthfully renders “connecting” during SSR, then needs a real SSE endpoint and the client runtime to report live or reconnecting state. This static documentation route does not create a fake stream.
Usage
LivePill usage<LivePill eventsHref={routes.events.href()} frame="board" ssrVersion={version} />API
LivePill APILivePillProps
| prop | type | notes |
|---|---|---|
| eventsHref | string | Href of the SSE endpoint (a route serving `sseResponse(...)`). |
| frame? | string | string[] | Named frame(s) to reload when the server version changes. Omit for an indicator-only pill (rare — most pages want the reload too). |
| ssrVersion? | number | Feed version at server render (`live.version()`) — closes the SSR→stream-open missed-mutation window. |