procxy / InitMessage
Interface: InitMessage
Defined in: src/shared/protocol.ts:13
Initialization message sent from parent to child on startup. Contains module path, class name, constructor arguments, and serialization mode.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
className | string | Name of the exported class to instantiate in the child process | src/shared/protocol.ts:19 |
constructorArgs | Jsonifiable[] | Positional constructor arguments forwarded verbatim to new ClassName(...args) | src/shared/protocol.ts:21 |
modulePath | string | Absolute path to the module file to import() in the child process | src/shared/protocol.ts:17 |
serialization? | SerializationMode | Serialization algorithm to use for subsequent IPC messages; defaults to 'json' | src/shared/protocol.ts:23 |
type | "INIT" | Discriminant: always 'INIT' | src/shared/protocol.ts:15 |