Remote / foldkit-remote/live
LiveStatus
type · packages/remote/src/live.ts:122
type LiveStatus =
| {
readonly _tag: 'Idle'
}
| {
readonly _tag: 'Live'
}
| {
readonly _tag: 'Reconnecting'
readonly attempt: number
readonly error: Option.Option<RemoteError>
}
| {
readonly _tag: 'Refused'
readonly error: RemoteError
}Whether 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 rows may be out of date. Refused is a stream the server
would not open for what it asks: it is not retried until that changes.