> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/functions/spoofmanager.onupdate.md).

# spoofManager.onUpdate

> **onUpdate**(`f`): `void`

Register the callback for updates. This is called whenever a packet is delayed.

You can use this to release packets after a certain amount of time.

### Parameters

#### f

(`packets`) => `void`

### Returns

`void`

### Example

```ts
spoofManager.onUpdate(packets => {
    for (let packet of packets) {
        if (packet.hasAged(1000)) { // Release after 1 second
            spoofManager.release(packet);
        }
    }
});
```
