'message' 事件


当子进程使用 process.send() 发送消息时会触发 'message' 事件。

消息通过序列化和解析进行传递。 收到的消息可能跟最初发送的不完全一样。

The 'message' event is triggered when a child process uses process.send() to send messages.

The message goes through serialization and parsing. The resulting message might not be the same as what is originally sent.