function · Browser and Node

# onDisclose

`@toip-tools/eventlog` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/tasks.ts#L64)

Import:

```ts
import { onDisclose } from "@toip-tools/eventlog";
```

## Declaration

Signature:

```ts
onDisclose(endpoint: Endpoint, handler: (bundle: Bundle, from: string) => Promise<void> | void): void;
```

### Parameters

- **`endpoint` (required)**: `Endpoint`
- **`handler` (required)**: `(bundle: Bundle, from: string) => Promise<void> | void`

### Returns

`void`

[Usage guide](https://toip.tools/toolkit/eventlog/#usage) · [Error handling](https://toip.tools/toolkit/eventlog/#errors) · [All exports](https://toip.tools/toolkit/eventlog/api/)

---

This is the Markdown version of https://toip.tools/toolkit/eventlog/api/onDisclose/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
