Documentation
    Preparing search index...

    Type Alias ActorHandle<AD>

    ActorHandle: Omit<ActorHandleRaw, "connect"> & {
        connect(): ActorConn<AD>;
        resolve(): Promise<string>;
    } & ActorDefinitionActions<AD>

    Stateless handle to a actor. Allows calling actor's remote procedure calls with inferred types without establishing a persistent connection.

    Type Parameters

    const room = client.get<ChatRoom>(...etc...);
    // This calls the action named `sendMessage` on the `ChatRoom` actor without a connection.
    await room.sendMessage('Hello, world!');

    Private methods (e.g. those starting with _) are automatically excluded.