Skip to content

Function: serverLiveSelect()

serverLiveSelect<T>(options): ServerLiveHandle

Defined in: server/src/live-select.ts:47

Server-side reactive query. Polls the change log for updates and re-runs the caller-supplied fetch whenever anything relevant happens. Intended for admin dashboards / background aggregators that need realtime data without the client-side sync loop.

NOT intended for high-fan-out subscription — for that use the SyncCoordinator DO + a normal PlasmaClient. This helper trades simplicity for scale: one polling loop per subscriber.

T

ServerLiveOptions<T>

ServerLiveHandle