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

Usage in Deno

import { ClientRequest } from "node:http";
ClientRequest.prototype.setSocketKeepAlive(
enable?: boolean,
initialDelay?: number,
): void

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