Documentation
    Preparing search index...

    Provides underlying functions for ActorConn. See ActorConn for using type-safe remote procedure calls.

    Index

    Constructors

    • Protected

      Do not call this directly.

      Creates an instance of ActorConnRaw.

      Parameters

      • client: ClientRaw
      • driver: ManagerDriver
      • params: unknown
      • encoding: "json" | "cbor" | "bare"
      • actorQuery:
            | { getForId: { actorId: string; name: string } }
            | { getForKey: { key: string[]; name: string } }
            | {
                getOrCreateForKey: {
                    input?: unknown;
                    key: string[];
                    name: string;
                    region?: string;
                };
            }
            | {
                create: {
                    input?: unknown;
                    key: string[];
                    name: string;
                    region?: string;
                };
            }

      Returns ActorConnRaw

    Methods

    • Call a raw action connection. See ActorConn for type-safe action calls.

      Type Parameters

      • Args extends unknown[] = unknown[]

        The type of arguments to pass to the action function.

      • Response = unknown

        The type of the response returned by the action function.

      Parameters

      • opts: { args: Args; name: string; signal?: AbortSignal }

      Returns Promise<Response>

      • A promise that resolves to the response of the action function.
    • Subscribes to connection errors.

      Parameters

      • callback: ActorErrorCallback

        The callback function to execute when a connection error occurs.

      Returns () => void

      • A function to unsubscribe from the error handler.