Remote / API

foldkit-remote/live

foldkit-remote/live: reads that watch what they read (#378). A live read installs, on the domain it reads, the code that runs a live stream and applies its events (and shows the rows a live insert adds), so a page that reads nothing live keeps none of it. httpWithLive is the client whose live stream these reads ask for.

Functions

httpWithLiveRemote's client over HTTP with live: reads, queries, and mutations as http sends them, live as liveFetch streams it, for clientLayer.
liveData.get, and the projection also subscribes to the entity's changes: its requirements are marked live, so subscriptions streams them for the Surfaces that…
liveFetchRemote's live stream over fetch: serveFetch's live open as a Stream.
liveQueryData.query, and the list is watched live while a Surface reads it: rows that join, change or leave it are streamed (by a live source that watches queries,…
liveStatusWhether what active reads live is arriving: Reconnecting from the moment its stream breaks until it resubscribes, which its live entry does on its own, with…
observeLiveA Foldkit Subscription entry that consumes the live stream for a Surface's requirements, every row it reads and each list it reads live, emitting a…

Interfaces

LiveFetchOptionsWhat httpWithLive needs besides the URL. Mirrors http, plus the fetch itself.

Types

LiveStatusWhether what an active entry reads live is arriving. Reconnecting is a stream that broke and waits to resubscribe; until it has, changes are missed, and its…