Skip to content

js-bao-wss-client


js-bao-wss-client / DocumentLoadedEvent

Interface: DocumentLoadedEvent ​

Payload of the documentLoaded event (client.on("documentLoaded", ...)). Fired when a document's content first becomes available after opening, with whether it came from local persistence or the server, whether any data was present, and how long the load took.

Properties ​

bytes? ​

optional bytes?: number


documentId ​

documentId: string


elapsedMs ​

elapsedMs: number


hadData ​

hadData: boolean


source ​

source: "indexeddb" | "server"

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