Interface IConnectOptions

Connection options for the WorkerConnector.connect.

interface IConnectOptions {
    execArgv: string[];
    stdio:
        | "pipe"
        | "overlapped"
        | "ignore"
        | "inherit";
    timeout: number;
}

Properties

execArgv: string[]

Arguments only for the NodeJS environments.

stdio:
    | "pipe"
    | "overlapped"
    | "ignore"
    | "inherit"

Whether to redirect the standard input to the worker server.

Available only in the NodeJS + Process environments.

timeout: number

Milliseconds to wait the worker server to accept or reject it. If omitted, the waiting would be forever.