ClientRequest.prototype.setSocketKeepAlive - Node documentation
method ClientRequest.prototype.setSocketKeepAlive

Usage

import { ClientRequest } from "node:http";

Once a socket is assigned to this request and is connected socket.setKeepAlive() will be called.

Parameters

optional
enable: boolean
optional
initialDelay: number

Return Type

void