Skip to content

js-bao-wss-client


js-bao-wss-client / WaitForLoadMode

Type Alias: WaitForLoadMode ​

WaitForLoadMode = "local" | "network" | "localIfAvailableElseNetwork"

Where a cached fetch waits for its result: "local" returns only the locally cached value (or null), "network" always fetches from the server (throwing when offline), and "localIfAvailableElseNetwork" returns the cached value when present and falls back to the network otherwise.

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30