rmapi-js
    Preparing search index...

    Class RawClient

    the protocol operations, for what the client does not do

    Client.raw gives one that shares the client's session and cache; one made here has its own.

    Index
    • get deviceId(): string

      the device each of the client's sessions names

      Returns string

    • the bytes of an item's index, for an ItemRef, or of one of its files, checked against the hash they are stored under

      Parameters

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • forget everything cached

      Returns void

    • what the client caches, as text to load back

      Returns string

    • make a folder through the upload host, at the root

      Parameters

      • name: string

      Returns Promise<FolderRef>

    • load what dumpCache gave, returning whether this version reads it

      Parameters

      • dump: string

      Returns boolean

    • point the root at hash if it is still at generation; a GenerationConflictError if another client wrote it first

      Parameters

      • hash: string
      • generation: bigint
      • broadcast: Broadcast

      Returns Promise<RootUpdate>

    • send a body whose hashes are known as the file name of item id, unless the account holds it

      Parameters

      Returns Promise<void>

    • send one staged blob, unless the account holds it

      Parameters

      Returns Promise<void>

    • send every staged blob, at once, each distinct one once

      Parameters

      Returns Promise<void>