---
url: 'https://adk.nht.io/api/@nhtio/adk/batteries/interfaces/HostEndpointHooks.md'
description: >-
  Hooks [`HostEndpoint`](https://adk.nht.io/api/@nhtio/adk/batteries/classes/HostEndpoint) invokes on protocol-level events; `host.ts` wires
  these to the observability layer + guest-event fan-out. All optional.
---

# Interface: HostEndpointHooks

Defined in: [src/batteries/isolation/protocol.ts:95](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/protocol.ts#L95)

Hooks [HostEndpoint](../classes/HostEndpoint.md) invokes on protocol-level events; `host.ts` wires these to the
observability layer + guest-event fan-out. All optional.

## Properties

| Property                                       | Type                                                                                                | Description                                                                        | Defined in                                                                                                                              |
| ---------------------------------------------- | --------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|  `onEnvelope?` | (`dir`: `"in"` | `"out"`, `envelope`: [`WireEnvelope`](../type-aliases/WireEnvelope.md)) => `void` | Any envelope was sent (`dir: 'out'`) or received (`dir: 'in'`) — for wire tracing. | [src/batteries/isolation/protocol.ts:101](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/protocol.ts#L101) |
|  `onEvent?`       | (`channel`: `string`, `payload`: [`WireValue`](../type-aliases/WireValue.md)) => `void`             | An `event` envelope arrived for `channel`.                                         | [src/batteries/isolation/protocol.ts:99](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/protocol.ts#L99)   |
|  `onReady?`       | (`info`: { `encoderAvailable`: `boolean`; }) => `void`                                            | The guest's `ready` envelope arrived.                                              | [src/batteries/isolation/protocol.ts:97](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/protocol.ts#L97)   |
