@gmitch215/folio - v1.0.1
    Preparing search index...

    Class RemoteFolio

    Connects to a registered artifact. Compilation and shared memory stay at the host.

    Index
    info: { capabilities: unknown; capability: string; threadIds: number[] }

    Session details from the host: its capability, worker thread ids and sharing capabilities.

    • await using support; equivalent to close().

      Returns Promise<void>

    • Ends the session; the host joins its workers before releasing the slot.

      Returns Promise<void>

    • Reads bytes from the host's memory, bounded by the host's read limit.

      Parameters

      • offset: number
      • length: number
      • Optionalmemory: string

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Resends the exact uncertain request; the host returns its cached result without repeating effects.

      Returns Promise<any>

    • Runs one allowlisted export in order on the host.

      Parameters

      • entry: string
      • args: readonly unknown[] = []
      • options: { maximumWorkers?: number; parallel?: "auto" | "off" | "speculate" } = {}

      Returns Promise<RemoteReport>

    • Writes bytes into the host's memory, bounded by the host's write limit.

      Parameters

      • offset: number
      • bytes: Uint8Array
      • Optionalmemory: string

      Returns Promise<void>

    • Opens a session on a registered artifact; workers asks for a group width within host limits.

      Parameters

      • url: string | URL
      • artifact: string
      • options: RemoteOptions & { workers?: number } = {}

      Returns Promise<RemoteFolio>