Endo API documentation
    Preparing search index...

    Interface CapTPOptions

    the options to makeCapTP

    interface CapTPOptions {
        epoch?: number;
        exportHook?: (val: unknown, slot: string) => void;
        gcImports?: boolean;
        importHook?: (val: unknown, slot: string) => void;
        makeCapTPImportExportTables?: (
            MakeCapTPImportExportTablesOptions: any,
        ) => CapTPImportExportTables;
        onReject?: (err: any) => void;
        trapGuest?: TrapGuest;
        trapHost?: TrapHost;
    }
    Index

    Properties

    epoch?: number

    an integer tag to attach to all messages in order to assist in ignoring earlier defunct instance's messages

    exportHook?: (val: unknown, slot: string) => void
    gcImports?: boolean

    if true, aggressively garbage collect imports

    importHook?: (val: unknown, slot: string) => void
    makeCapTPImportExportTables?: (
        MakeCapTPImportExportTablesOptions: any,
    ) => CapTPImportExportTables

    provide external import/export tables

    onReject?: (err: any) => void
    trapGuest?: TrapGuest

    if specified, enable this CapTP (guest) to use Trap(target) to block while the recipient (host) resolves and communicates the response to the message

    trapHost?: TrapHost

    if specified, enable this CapTP (host) to serve objects marked with makeTrapHandler to synchronous clients (guests)