import { createClient } from "rivetkit/client";
import type { registry } from "./registry";
const client = createClient<typeof registry>({
endpoint: "https://api.rivet.dev",
namespace: "galaxy-33fc-production-8068",
// This token is safe to publish on your frontend
token: "XXX-XXX-XXX-XXX",
});
// I want to prevent the creation of an actor client-side
const wizardRoom = client.wizardRoom.getOrCreate(['wizard','created from client']);
import { createClient } from "rivetkit/client";
import type { registry } from "./registry";
const client = createClient<typeof registry>({
endpoint: "https://api.rivet.dev",
namespace: "galaxy-33fc-production-8068",
// This token is safe to publish on your frontend
token: "XXX-XXX-XXX-XXX",
});
// I want to prevent the creation of an actor client-side
const wizardRoom = client.wizardRoom.getOrCreate(['wizard','created from client']);