Skip to main content
method ClientRequest.prototype.setSocketKeepAlive
ClientRequest.prototype.setSocketKeepAlive(
enable?: boolean,
initialDelay?: number,
): void
Deprecated

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
Back to top