Skip to content

js-bao-wss-client


js-bao-wss-client / GetMeOptions

Interface: GetMeOptions ​

Options for client.me.get() controlling how the cached profile is read and when it is refreshed from the server.

Properties ​

refreshIfOlderThanMs? ​

optional refreshIfOlderThanMs?: number

Re-fetches from the server if the cached entry is older than this many milliseconds (default 5 minutes)


refreshNetwork? ​

optional refreshNetwork?: boolean

When true, forces a network fetch even if cached data exists


serverTimeoutMs? ​

optional serverTimeoutMs?: number

Maximum time in milliseconds to wait for a server response before falling back


waitForLoad? ​

optional waitForLoad?: "local" | "network" | "localIfAvailableElseNetwork"

Where to read from: local cache, network, or local-first with network fallback

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