Documentation
    Preparing search index...

    Provides underlying functions for stateless ActorHandle for action calls. Similar to ActorConnRaw but doesn't maintain a connection.

    Index

    Constructors

    • Protected

      Do not call this directly.

      Creates an instance of ActorHandleRaw.

      Parameters

      • client: any
      • 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 ActorHandleRaw

    Methods

    • Call a raw action. This method sends an HTTP request to invoke the named action.

      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>

    • Makes a raw HTTP request to the actor.

      Parameters

      • input: string | Request | URL

        The URL, path, or Request object

      • Optionalinit: RequestInit

        Standard fetch RequestInit options

      Returns Promise<Response>

      Promise - The raw HTTP response

    • Creates a raw WebSocket connection to the actor.

      Parameters

      • Optionalpath: string

        The path for the WebSocket connection (e.g., "stream")

      • Optionalprotocols: string | string[]

        Optional WebSocket subprotocols

      Returns Promise<WebSocket>

      WebSocket - A raw WebSocket connection