Interface TCPDialOptions

Expose a subset of net.connect options

interface TCPDialOptions {
    allowHalfOpen?: boolean;
    keepAlive?: boolean;
    keepAliveInitialDelay?: number;
    noDelay?: boolean;
    onProgress?: ((evt) => void);
    signal?: AbortSignal;
    upgrader: Upgrader;
}

Hierarchy (view full)

Properties

allowHalfOpen?: boolean
keepAlive?: boolean
keepAliveInitialDelay?: number
noDelay?: boolean
onProgress?: ((evt) => void)

Type declaration

signal?: AbortSignal
upgrader: Upgrader

The upgrader turns a MultiaddrConnection into a Connection which should be returned by the transport's dial method