Skip to main content
Worker.prototype.isConnected - node__cluster.d.ts - Node documentation
method Worker.prototype.isConnected

Usage in Deno

```typescript import { Worker } from "node:node__cluster.d.ts"; ```
Worker.prototype.isConnected(): boolean
This function returns `true` if the worker is connected to its primary via its IPC channel, `false` otherwise. A worker is connected to its primary after it has been created. It is disconnected after the `'disconnect'` event is emitted.

Return Type

boolean