fetch
fetch: ( runner: Runner, actorId: string, requestId: ArrayBuffer, request: Request,) => Promise<Response> getActorHibernationConfig
getActorHibernationConfig: ( actorId: string, requestId: ArrayBuffer, request: Request,) => HibernationConfig metadata?: Record<string, any>
namespace
namespace: string
OptionalnoAutoShutdown
noAutoShutdown?: boolean
onActorStart
onActorStart: ( actorId: string, generation: number, config: ActorConfig,) => Promise<void> onActorStop
onActorStop: (actorId: string, generation: number) => Promise<void>
onConnected
onConnected: () => void
onDisconnected
onDisconnected: (code: number, reason: string) => void
onShutdown
onShutdown: () => void
OptionalpegboardEndpoint
pegboardEndpoint?: string
OptionalpegboardRelayEndpoint
pegboardRelayEndpoint?: string
prepopulateActorNames
prepopulateActorNames: Record<string, { metadata: Record<string, any> }>
runnerKey
runnerKey: string
runnerName
runnerName: string
Optionaltoken
token?: string
totalSlots
totalSlots: number
Optionalwebsocket
websocket?: ( runner: Runner, actorId: string, ws: any, requestId: ArrayBuffer, request: Request,) => Promise<void>