Connection to a actor. Allows calling actor's remote procedure calls with inferred types. See ActorConnRaw for underlying methods.
The actor class that this connection is for.
const room = client.connect<ChatRoom>(...etc...);// This calls the action named `sendMessage` on the `ChatRoom` actor.await room.sendMessage('Hello, world!'); Copy
const room = client.connect<ChatRoom>(...etc...);// This calls the action named `sendMessage` on the `ChatRoom` actor.await room.sendMessage('Hello, world!');
Private methods (e.g. those starting with _) are automatically excluded.
_
ActorConnRaw
Connection to a actor. Allows calling actor's remote procedure calls with inferred types. See ActorConnRaw for underlying methods.