Methods to control the current process and IPC interaction with the parent process.

Static variables

@:value(new ArraySignal())staticread onlymessageSignal:Signal<IpcMessage> = new ArraySignal()

Emitted when a message is received over IPC. initIpc must be called first to initialise the IPC channel.

Static methods

staticinitIpc (fd:Int):Void

Initialise the IPC channel on the given file descriptor fd. This should only be used when the current process was spawned with Process.spawn from another Haxe process. fd should correspond to the index of the Ipc entry in options.stdio.

staticsend (message:IpcMessage):Void

Sends a message over IPC. initIpc must be called first to initialise the IPC channel.