Skip to main content
ServerOpts.keepAlive - net - Node documentation
property ServerOpts.keepAlive

Usage in Deno

import { type ServerOpts } from "node:net";

If set to true, it enables keep-alive functionality on the socket immediately after a new incoming connection is received, similarly on what is done in socket.setKeepAlive([enable][, initialDelay]).

Type

boolean | undefined