---
url: 'https://adk.nht.io/api/@nhtio/adk/batteries/interfaces/IsolationTransport.md'
description: >-
  The environment-specific spawn/lifecycle duck a host-side transport implements
  — WP2 (Web Worker) and WP3 (node child_process) each provide one;
  `createIsolatedService` (host.ts) drives only this interface, never a concrete
  Worker/ChildProcess type.
---

# Interface: IsolationTransport

Defined in: [src/batteries/isolation/types.ts:335](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/types.ts#L335)

The environment-specific spawn/lifecycle duck a host-side transport implements — WP2 (Web Worker)
and WP3 (node child\_process) each provide one; `createIsolatedService` (host.ts) drives only this
interface, never a concrete Worker/ChildProcess type.

## Methods

### connect()

```ts
connect(): Promise<PortLike>;
```

Defined in: [src/batteries/isolation/types.ts:337](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/types.ts#L337)

Spawn (or reuse) the guest and resolve once a [PortLike](PortLike.md) is ready to exchange envelopes.

#### Returns

`Promise`<[`PortLike`](PortLike.md)>

***

### onCrash()

```ts
onCrash(fn: (info: CrashInfo) => void): () => void;
```

Defined in: [src/batteries/isolation/types.ts:341](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/types.ts#L341)

Subscribe to crash notifications (unexpected exit/termination). Returns an unsubscribe function.

#### Parameters

| Parameter | Type                                            |
| --------- | ----------------------------------------------- |
| `fn`      | (`info`: [`CrashInfo`](CrashInfo.md)) => `void` |

#### Returns

() => `void`

***

### terminate()

```ts
terminate(): void | Promise<void>;
```

Defined in: [src/batteries/isolation/types.ts:339](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/types.ts#L339)

Tear down the guest unconditionally (kill/terminate). May be sync or async.

#### Returns

`void` | `Promise`<`void`>
