SDK
Rivet generates a unique SDK for your modules with type-safe methods to call your scripts automatically. This SDK configuration can be found in the sdk
portion of your rivet.json
.
Setup
Godot
The Rivet plugin automatically configures SDK generation for you. The SDK is automatically available to you on the Rivet
singleton.
The backend endpoint is automatically populated for you.
Unity
The Rivet plugin automatically configures SDK generation for you.
The SDK an be access using the Rivet.RivetClient
object:
C#
The backend endpoint is automatically populated for you.
JavaScript & TypeScript
Install SDK
Replace ./path/to/sdk
with the path to the generated SDK.
Initiate SDK
TypeScript
Heads up!
The SDK connects to http://localhost:6420
by default. This can be configured by passing endpoint
to the constructor.
Call script
TypeScript