Skip to main content
This release is 0 versions behind 24.6.1 — the latest version of @rivet-gg/actor-client. Jump to latest

🔧 Rivet Actors have built-in RPC, state, and events — the easiest way to build modern applications.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
64%
Published
2 days ago (24.6.1-rc.2)
type alias ActorRPCFunction

RPC function returned by ActorHandle. This will call ActorHandle.rpc when triggered.

Type Parameters

Args extends Array<unknown> = unknown[]
Response = unknown

Definition

(...args: Args extends [unknown, ...infer Rest] ? Rest : Args) => Promise<Response>

Add Package

deno add jsr:@rivet-gg/actor-client

Import symbol

import { type ActorRPCFunction } from "@rivet-gg/actor-client";

---- OR ----

Import directly with a jsr specifier

import { type ActorRPCFunction } from "jsr:@rivet-gg/actor-client";

Add Package

npx jsr add @rivet-gg/actor-client

Import symbol

import { type ActorRPCFunction } from "@rivet-gg/actor-client";

Add Package

yarn dlx jsr add @rivet-gg/actor-client

Import symbol

import { type ActorRPCFunction } from "@rivet-gg/actor-client";

Add Package

pnpm dlx jsr add @rivet-gg/actor-client

Import symbol

import { type ActorRPCFunction } from "@rivet-gg/actor-client";

Add Package

bunx jsr add @rivet-gg/actor-client

Import symbol

import { type ActorRPCFunction } from "@rivet-gg/actor-client";