Skip to main content
This package has been archived, and as such it is read-only.
This release is 2 versions behind 24.6.2 — 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
70%
Published
3 months ago (24.6.0)
function readEndpointFromCli
readEndpointFromCli(): Promise<string>

Uses the Rivet CLI to read the manager endpoint to connect to. This allows for writing tests that run locally without hardcoding the manager endpoint.

Return Type

Add Package

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

Import symbol

import { readEndpointFromCli } from "@rivet-gg/actor-client/test";

---- OR ----

Import directly with a jsr specifier

import { readEndpointFromCli } from "jsr:@rivet-gg/actor-client/test";

Add Package

npx jsr add @rivet-gg/actor-client

Import symbol

import { readEndpointFromCli } from "@rivet-gg/actor-client/test";

Add Package

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

Import symbol

import { readEndpointFromCli } from "@rivet-gg/actor-client/test";

Add Package

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

Import symbol

import { readEndpointFromCli } from "@rivet-gg/actor-client/test";

Add Package

bunx jsr add @rivet-gg/actor-client

Import symbol

import { readEndpointFromCli } from "@rivet-gg/actor-client/test";