method ClientRequest.prototype.setSocketKeepAliveClientRequest.prototype.setSocketKeepAlive(enable?: boolean,initialDelay?: number,): voidDeprecatedOnce a socket is assigned to this request and is connected socket.setKeepAlive() will be called. Parametersoptionalenable: booleanoptionalinitialDelay: numberReturn Typevoid