Function: createChildProcessTransport()
ts
function createChildProcessTransport<S>(
spec: S,
options: ForkIsolatedOptions,
): IsolationTransport;Defined in: src/batteries/isolation/child_process/transport.ts:247
Build a real @nhtio/adk/batteries/isolation!IsolationTransport over a node child_process (or BYO-resolved) child. connect() spawns a fresh child every call (including every recycle() — there is no child reuse); terminate() sends SIGTERM (or forkOptions.killSignal/the resolver's own convention) without waiting for exit or imposing any grace period of its own (host.ts already owns that via disposeGraceMs).
Type Parameters
| Type Parameter |
|---|
S extends IsolatedServiceSpec<MethodMap, StreamMap, EventMap> |
Parameters
| Parameter | Type |
|---|---|
spec | S |
options | ForkIsolatedOptions |
Returns
Throws
@nhtio/adk/batteries/isolation!E_ISOLATION_UNSUPPORTED_ENV when called outside node (no process.pid / no child_process.fork).
Throws
@nhtio/adk/batteries/isolation!E_INVALID_ISOLATION_OPTIONS when options fails the mutual-exclusivity check documented on ForkIsolatedOptions.