process.channel
版本历史
| 版本 | 变更 |
|---|---|
| v14.0.0 | 该对象不再意外暴露原生 C++ 绑定。 |
| v7.1.0 | 新增于: v7.1.0 |
如果 Node.js 进程是使用 IPC 通道生成的(请参阅 子进程 文档),则 process.channel 属性是对 IPC 通道的引用。如果不存在 IPC 通道,则此属性为 undefined。
\If the Node.js process was spawned with an IPC channel (see the
Child Process documentation), the process.channel
property is a reference to the IPC channel. If no IPC channel exists, this
property is undefined.