# 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

- AD extends AnyActorDefinition

  The actor class that this handle is for.

#### Example

    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.

#### See

ActorHandleRaw

- Defined in rivetkit-typescript/packages/rivetkit/src/client/actor-handle.ts:285