screeps-api
    Preparing search index...

    Variable GLOBAL_RATE_LIMIT_DELAYConst

    GLOBAL_RATE_LIMIT_DELAY: { min: 200; var: 500 } = ...

    Specifies the delay between retry attempts for API requests that are rejected due to the global rate limit.

    The delay for each retry attempt is calculated using the following formula:

    const delay = Math.floor(var * Math.random()) + min
    

    Type Declaration

    • Readonlymin: 200

      The constant portion of the delay

    • Readonlyvar: 500

      The random variable portion of the delay

    ScreepsClientConfig.retry429Global to enable/disable this behavior