interface TcpNetConnectOpts {
    allowHalfOpen?: boolean;
    autoSelectFamily?: boolean;
    autoSelectFamilyAttemptTimeout?: number;
    family?: number;
    fd?: number;
    hints?: number;
    host?: string;
    keepAlive?: boolean;
    keepAliveInitialDelay?: number;
    localAddress?: string;
    localPort?: number;
    lookup?: LookupFunction;
    noDelay?: boolean;
    onread?: OnReadOpts;
    port: number;
    readable?: boolean;
    signal?: AbortSignal;
    timeout?: number;
    writable?: boolean;
}

Hierarchy (View Summary)

Properties

allowHalfOpen?: boolean
autoSelectFamily?: boolean

v18.13.0

autoSelectFamilyAttemptTimeout?: number

v18.13.0

family?: number
fd?: number
hints?: number
host?: string
keepAlive?: boolean
keepAliveInitialDelay?: number
localAddress?: string
localPort?: number
noDelay?: boolean
onread?: OnReadOpts

If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket. Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will still be emitted as normal and methods like pause() and resume() will also behave as expected.

port: number
readable?: boolean
signal?: AbortSignal
timeout?: number
writable?: boolean