property Process.connected
Usage in Deno
import { type Process } from "node:process";
If the Node.js process is spawned with an IPC channel (see the Child Process
and Cluster
documentation), the process.connected
property will returntrue
so long as the IPC
channel is connected and will return false
afterprocess.disconnect()
is called.
Once process.connected
is false
, it is no longer possible to send messages
over the IPC channel using process.send()
.
boolean