drupflare/worker - v1.0.4
    Preparing search index...

    Function idleBilledSeconds

    • Seconds of billed duration one idle period costs, given what was left open.

      The platform's rule applied to a state, never a wall-clock reading; the deployed number comes from duration on durableObjectsPeriodicGroups.

      Parameters

      • state: ResidencyState

        what the object left open.

      • outboundHeldSeconds: number = 0

        how long an outbound socket stayed open, if one did.

      Returns number