Skip to main content
This release is 0 versions behind 24.6.2 — the latest version of @rivet-gg/actor. Jump to latest

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

This package works with Deno
This package works with Deno
JSR Score
88%
Published
2 months ago (24.6.2-rc.2)
method Actor.prototype._onInitialize
Actor.prototype._onInitialize(): State | Promise<State>

Hook called when the actor is first created. This method should return the initial state of the actor. The state can be access with this._state.

Return Type

State | Promise<State>

See

Add Package

deno add jsr:@rivet-gg/actor

Import symbol

import { Actor } from "@rivet-gg/actor";

---- OR ----

Import directly with a jsr specifier

import { Actor } from "jsr:@rivet-gg/actor";