ChildProcessHandle
Defined in: packages/core/src/capture/forked/channel.ts:5
How the parent sees the capture child (child_process.fork adapts to this).
Methods
Section titled “Methods”kill()
Section titled “kill()”kill(
force?):void
Defined in: packages/core/src/capture/forked/channel.ts:11
Stop the child: SIGTERM, escalating to SIGKILL; force goes straight to SIGKILL (a hung child ignores SIGTERM).
Parameters
Section titled “Parameters”force?
Section titled “force?”boolean
Returns
Section titled “Returns”void
onExit()
Section titled “onExit()”onExit(
listener):void
Defined in: packages/core/src/capture/forked/channel.ts:9
Fires once when the child ends; code is null when it was killed by a signal.
Parameters
Section titled “Parameters”listener
Section titled “listener”(info) => void
Returns
Section titled “Returns”void
onMessage()
Section titled “onMessage()”onMessage(
listener):void
Defined in: packages/core/src/capture/forked/channel.ts:7
Parameters
Section titled “Parameters”listener
Section titled “listener”(message) => void
Returns
Section titled “Returns”void
send()
Section titled “send()”send(
message):void
Defined in: packages/core/src/capture/forked/channel.ts:6
Parameters
Section titled “Parameters”message
Section titled “message”Returns
Section titled “Returns”void