Skip to content

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

PropertyTypeDescriptionDefined in
classNamestringName of the exported class to instantiate in the child processsrc/shared/protocol.ts:19
constructorArgsJsonifiable[]Positional constructor arguments forwarded verbatim to new ClassName(...args)src/shared/protocol.ts:21
modulePathstringAbsolute path to the module file to import() in the child processsrc/shared/protocol.ts:17
serialization?SerializationModeSerialization 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

Released under the MIT License.