Driver
ChildProcessDriver
Child process driver.
Uses child_process.fork() with Unix domain sockets for IPC. Supports disconnect/reconnect and detached workers.
Examples
typescript
import { ChildProcessDriver } from 'isolated-workers/drivers/child-process';
// Host side: spawn a worker
const channel = await ChildProcessDriver.spawn('./worker.js', {
detached: false,
timeout: 10000,
});
// Worker side: create server
const server = await ChildProcessDriver.createServer();