Documentation
    Preparing search index...
    interface RunnerConfig {
        endpoint: string;
        fetch: (
            runner: Runner,
            actorId: string,
            requestId: ArrayBuffer,
            request: Request,
        ) => Promise<Response>;
        getActorHibernationConfig: (
            actorId: string,
            requestId: ArrayBuffer,
            request: Request,
        ) => HibernationConfig;
        logger?: Logger;
        metadata?: Record<string, any>;
        namespace: string;
        noAutoShutdown?: boolean;
        onActorStart: (
            actorId: string,
            generation: number,
            config: ActorConfig,
        ) => Promise<void>;
        onActorStop: (actorId: string, generation: number) => Promise<void>;
        onConnected: () => void;
        onDisconnected: (code: number, reason: string) => void;
        onShutdown: () => void;
        pegboardEndpoint?: string;
        pegboardRelayEndpoint?: string;
        prepopulateActorNames: Record<string, { metadata: Record<string, any> }>;
        runnerKey: string;
        runnerName: string;
        token?: string;
        totalSlots: number;
        version: number;
        websocket?: (
            runner: Runner,
            actorId: string,
            ws: any,
            requestId: ArrayBuffer,
            request: Request,
        ) => Promise<void>;
    }
    Index

    Properties

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