Remote / foldkit-remote/live

LiveFetchOptions

interface · packages/remote/src/sse.ts:24

interface LiveFetchOptions {
  readonly headers?: (() => Readonly<Record<string, string>>) | undefined
  readonly fetch?: typeof fetch | undefined
}

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

Members

LiveFetchOptions.headers

property · packages/remote/src/sse.ts:26

readonly headers?: (() => Readonly<Record<string, string>>) | undefined

Read per request, so a token that changes reaches the next call.

LiveFetchOptions.fetch

property · packages/remote/src/sse.ts:28

readonly fetch?: typeof fetch | undefined

Defaults to the global one; pass it to route calls elsewhere in tests.