Primitives / foldkit-primitives/net
SseView
const · packages/primitives/src/net/sse.ts:42
const SseView: TaggedUnion<{
readonly Disconnected: {}
readonly Connecting: {}
readonly Connected: {}
readonly Error: { readonly error: Schema.String }
}>Its type
type SseView = typeof SseView.TypeWhat the reader sees: the stream's state, or its error. A page derives
this instead of keeping its own connection state machine. lastError
carries the stored failure text: the runtime error sentence (event stream
error for …) or the acquire error's own message.