Interface TCPCreateListenerOptions

Expose a subset of net.connect options

interface TCPCreateListenerOptions {
    allowHalfOpen?: boolean;
    keepAlive?: boolean;
    keepAliveInitialDelay?: number;
    noDelay?: boolean;
    signal?: AbortSignal;
    upgrader: Upgrader;
}

Hierarchy (view full)

Properties

allowHalfOpen?: boolean
keepAlive?: boolean
keepAliveInitialDelay?: number
noDelay?: boolean
signal?: AbortSignal
upgrader: Upgrader

The upgrader turns a MultiaddrConnection into a Connection and notifies other libp2p components about a new incoming connection.