rozod
    Preparing search index...

    Function updateCookie

    • Param Returns Example

      Updates a specific cookie in the cookie pool by index. Useful for manually updating cookies when you receive rotation events through other means.

      index - The index in the cookie pool to update (0 for single cookie) newCookie - The new cookie value true if the cookie was updated, false if the index was invalid

      // Update the first (or only) cookie
      updateCookie(0, 'new_cookie_value');

      // Update a specific account in a pool
      updateCookie(2, 'new_cookie_for_account_3');

      Parameters

      • index: number
      • newCookie: string

      Returns boolean