New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@jogit/tmp-actor-client

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jogit/tmp-actor-client

latest
npmnpm
Version
24.6.2-rc.5
Version published
Maintainers
1
Created
Source

Rivet Actor Client

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

Getting Started

  • Setup Guide
  • Documentation
  • Examples

Example

import { Client } from "@rivet-gg/actor-client";
import type Counter from "./counter.ts";

const client = new Client(/* CONNECTION ADDRESS */);

// Get-or-create a counter actor
const counter = await client.get<Counter>({ name: "counter" });

// Listen for update count events (https://rivet.gg/docs/events)
counter.on("count", (count: number) => console.log("New count:", count));

// Increment the count over remote procedure call (https://rivet.gg/docs/rpc)
await counter.increment(1);

// Disconnect from the actor when finished (https://rivet.gg/docs/connections)
await counter.dispose();

See setup guide for how to access /* CONNECTION ADDRESS */.

Community & Support

License

Apache 2.0

FAQs

Package last updated on 16 Jan 2025

Related posts