Skip to main content
ClusterSettings.inspectPort - cluster - Node documentation
property ClusterSettings.inspectPort

Usage in Deno

import { type ClusterSettings } from "node:cluster";

Sets inspector port of worker. This can be a number, or a function that takes no arguments and returns a number. By default each worker gets its own port, incremented from the primary's process.debugPort.

Type

number
| (() => number)
| undefined