事件:'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
.