Options
All
  • Public
  • Public/Protected
  • All
Menu

A Channel to send messages between two processes using a dedicated pipe/fd for binary messages. This fd is opened as 5th channel in addition to the default stdios (stdin, stdout, stderr, ipc). This means the default channels are not blocked and can be used by the respective process for additional custom message handling.

Hierarchy

Index

Constructors

  • new IPCChannel(childProcess?: ChildProcess): IPCChannel

Properties

ipcErrorListener: ((error: Error) => void) = ...

Type declaration

    • (error: Error): void
    • Parameters

      • error: Error

      Returns void

messagePipe: BinaryMessagePipe
onCloseEmitter: Emitter<ChannelCloseEvent> = ...
onErrorEmitter: Emitter<unknown> = ...
onMessageEmitter: Emitter<MessageProvider> = ...
toDispose: DisposableCollection = ...

Accessors

  • get onError(): Event<unknown>

Methods

  • close(): void
  • setupChildProcess(childProcess: ChildProcess): void
  • setupProcess(): void