@procwire/client
@procwire/client - Child-side API for Procwire IPC.
This package provides the client-side implementation for child processes to communicate with the parent process using Procwire’s binary protocol.
Example
Section titled “Example”import { Client } from '@procwire/client';
const client = new Client() .handle('query', async (data, ctx) => { const results = await search(data); ctx.respond(results); }) .handle('insert', async (data, ctx) => { ctx.ack({ accepted: true }); await processInBackground(data); }) .event('progress');
await client.start();
// Emit events to parentclient.emitEvent('progress', { percent: 50 });Classes
Section titled “Classes”Interfaces
Section titled “Interfaces”Type Aliases
Section titled “Type Aliases”Variables
Section titled “Variables”References
Section titled “References”EmptySchema
Section titled “EmptySchema”Renames and re-exports Schema
ExtractSchema
Section titled “ExtractSchema”Renames and re-exports Schema
Schema
Section titled “Schema”Re-exports Schema