事件:'disconnect'
【Event: 'disconnect'】
'disconnect' 事件在父进程调用 subprocess.disconnect() 方法或子进程调用 process.disconnect() 方法后触发。断开连接后,将无法再发送或接收消息,并且 subprocess.connected 属性为 false。
【The 'disconnect' event is emitted after calling the
subprocess.disconnect() method in parent process or
process.disconnect() in child process. After disconnecting it is no longer
possible to send or receive messages, and the subprocess.connected
property is false.】