Skip to main content
ClientRequest.prototype.setSocketKeepAlive - node__http.d.ts - Node documentation
method ClientRequest.prototype.setSocketKeepAlive

Usage in Deno

```typescript import { ClientRequest } from "node:node__http.d.ts"; ```
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