Client SDKs
JavaScript & TypeScript
This guide will walk you through setting up JavaScript/TypeScript client & connect to an actor.
Notice
Make sure you've already deployed a Rivet Actor. If you haven't, follow the setup guide first.
Install client package
Install the Rivet actor package with:
Info
These commands don't use the usual npm install
/yarn add
/etc since @rivet-gg/actor-client
package is hosted on jsr.io, a portable alternative to NPM.
Connect to actor
Fetch the connection address using the Rivet CLI. Copy this value.
Command Line
Use this code to create & connect to the actor. Replace /* CONNECTION ADDRESS */
with the value from the previous step.
TypeScript
You can monitor the actor with:
Visit the Rivet Hub. Click on the actor with the green dot.