Skip to content

API reference / @docmentis/udoc-node / OpenRemoteOptions

Interface: OpenRemoteOptions ​

Options for UDocNode.openRemote. Every field is optional; each says its default.

Properties ​

PropertyDescription
fetch?
(url) => Promise<Uint8Array<ArrayBufferLike>>
What answers each URL the session fetches, with the whole body, as the route serves it — how udoc-server opens a session over the store it keeps, with no request to itself. Default the global fetch.
withOriginal?
boolean
Whether the session is the one its host keeps the original for: saveToBytes can then write over that file by "delta" or "incremental". fetch also answers …/original-id-map, …/modified-part-ids and …/removed-part-ids, each as the package's JSON, or empty for none, and …/original, as the file, which is asked for only when a save needs it. None of these is deflated, and no udoc-server route serves them. Default false.