Genese complexity report

<- net.d.ts
Methods : 130
Complexity index : 76.2
Cyclomatic complexity : 127
Cognitive complexity
100 % Correct 130/130
0 % Warning 0/130 (threshold : 10)
0 % Error 0/130 (threshold : 20)
Cyclomatic complexity
100 % Correct 130/130
0 % Warning 0/130 (threshold : 5)
0 % Error 0/130 (threshold : 10)
Methods of net.d.ts
Complexity Index 0.2 Cyclomatic complexity 0
                            
                                
                
                    constructor(options?: SocketConstructorOpts); // ------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
write Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                    
            
                    // Extended base methods
                    write(buffer: Uint8Array | string, cb?: (err?: Error) => void): boolean; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
write Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                    
                    write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error) => void): boolean; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
connect Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
            
                    connect(options: SocketConnectOpts, connectionListener?: () => void): this; // ---------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
connect Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    connect(port: number, host: string, connectionListener?: () => void): this; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
connect Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    connect(port: number, connectionListener?: () => void): this; // --------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
connect Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    connect(path: string, connectionListener?: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
setEncoding Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
            
                    setEncoding(encoding?: BufferEncoding): this; // ----------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
pause Complexity Index 0.1 Cyclomatic complexity 1
                            
                                
                    
                    pause(): this; // -------------------------------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
resume Complexity Index 0.1 Cyclomatic complexity 1
                            
                                
                    
                    resume(): this; // ------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
setTimeout Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    setTimeout(timeout: number, callback?: () => void): this; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
setNoDelay Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    setNoDelay(noDelay?: boolean): this; // ---------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
setKeepAlive Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    setKeepAlive(enable?: boolean, initialDelay?: number): this; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
address Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    address(): AddressInfo | {}; // --------------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
unref Complexity Index 0.1 Cyclomatic complexity 1
                            
                                
                    
                    unref(): this; // --------------------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
ref Complexity Index 0.1 Cyclomatic complexity 1
                            
                                
                    
                    ref(): this; // --------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
end Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
            
                    // Extended base methods
                    end(cb?: () => void): void; // --------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
end Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    end(buffer: Uint8Array | string, cb?: () => void): void; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
end Complexity Index 1 Cyclomatic complexity 1
                            
                                
                    
                    end(str: Uint8Array | string, encoding?: BufferEncoding, cb?: () => void): void; // ------- +1.0 Complexity index (+1.0 atomic)
            
                            
                        
addListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    /**
                     * events.EventEmitter
                     *   1. close
                     *   2. connect
                     *   3. data
                     *   4. drain
                     *   5. end
                     *   6. error
                     *   7. lookup
                     *   8. timeout
                     */
                    addListener(event: string, listener: (...args: any[]) => void): this; // ------------------ +0.8 Complexity index (+0.8 atomic)
            
                            
                        
addListener Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "close", listener: (had_error: boolean) => void): this; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "connect", listener: () => void): this; // ----------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "data", listener: (data: Buffer) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "drain", listener: () => void): this; // ------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "end", listener: () => void): this; // --------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "error", listener: (err: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
addListener Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this; // ------- +1.4 Complexity index (+1.4 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "timeout", listener: () => void): this; // ------------------------------------------------------------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
emit Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
            
                    emit(event: string | symbol, ...args: any[]): boolean; // ----------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
emit Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "close", had_error: boolean): boolean; // ----------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "connect"): boolean; // ------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
emit Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "data", data: Buffer): boolean; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "drain"): boolean; // -------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "end"): boolean; // --------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
emit Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "error", err: Error): boolean; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
emit Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "timeout"): boolean; // -------------------------------------------------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
on Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    on(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
on Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "close", listener: (had_error: boolean) => void): this; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "connect", listener: () => void): this; // ----------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "data", listener: (data: Buffer) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "drain", listener: () => void): this; // ------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "end", listener: () => void): this; // --------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "error", listener: (err: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
on Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this; // ------- +1.4 Complexity index (+1.4 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "timeout", listener: () => void): this; // ------------------------------------------------------------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    once(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
once Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "close", listener: (had_error: boolean) => void): this; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "connect", listener: () => void): this; // ----------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "data", listener: (data: Buffer) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "drain", listener: () => void): this; // ------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "end", listener: () => void): this; // --------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "error", listener: (err: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
once Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this; // ------- +1.4 Complexity index (+1.4 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "timeout", listener: () => void): this; // ------------------------------------------------------------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    prependListener(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependListener Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "close", listener: (had_error: boolean) => void): this; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "connect", listener: () => void): this; // ----------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "data", listener: (data: Buffer) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "drain", listener: () => void): this; // ------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "end", listener: () => void): this; // --------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "error", listener: (err: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependListener Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this; // ------- +1.4 Complexity index (+1.4 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "timeout", listener: () => void): this; // ------------------------------------------------------------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    prependOnceListener(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "close", listener: (had_error: boolean) => void): this; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "connect", listener: () => void): this; // ----------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "data", listener: (data: Buffer) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "drain", listener: () => void): this; // ------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "end", listener: () => void): this; // --------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "error", listener: (err: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependOnceListener Complexity Index 1.4 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "lookup", listener: (err: Error, address: string, family: string | number, host: string) => void): this; // ------- +1.4 Complexity index (+1.4 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "timeout", listener: () => void): this; // ------------------------------------------------------------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
Complexity Index 0.4 Cyclomatic complexity 0
                            
                                
                
                    constructor(connectionListener?: (socket: Socket) => void); // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
Complexity Index 0.7 Cyclomatic complexity 0
                            
                                
                    
                    constructor(options?: { allowHalfOpen?: boolean, pauseOnConnect?: boolean }, connectionListener?: (socket: Socket) => void); // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
listen Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
            
                    listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this; // ---------------------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
listen Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    listen(port?: number, hostname?: string, listeningListener?: () => void): this; // ------------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
listen Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    listen(port?: number, backlog?: number, listeningListener?: () => void): this; // -------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
listen Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    listen(port?: number, listeningListener?: () => void): this; // ------------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
listen Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    listen(path: string, backlog?: number, listeningListener?: () => void): this; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
listen Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    listen(path: string, listeningListener?: () => void): this; // ------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
listen Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    listen(options: ListenOptions, listeningListener?: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
listen Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                    
                    listen(handle: any, backlog?: number, listeningListener?: () => void): this; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
listen Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    listen(handle: any, listeningListener?: () => void): this; // ------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
close Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    close(callback?: (err?: Error) => void): this; // ------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
address Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    address(): AddressInfo | string | null; // -------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
getConnections Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    getConnections(cb: (error: Error | null, count: number) => void): void; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
ref Complexity Index 0.1 Cyclomatic complexity 1
                            
                                
                    
                    ref(): this; // ------------------------------------------------------------------ +0.1 Complexity index (+0.1 atomic)
            
                            
                        
unref Complexity Index 0.1 Cyclomatic complexity 1
                            
                                
                    
                    unref(): this; // ------- +0.1 Complexity index (+0.1 atomic)
            
                            
                        
addListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    /**
                     * events.EventEmitter
                     *   1. close
                     *   2. connection
                     *   3. error
                     *   4. listening
                     */
                    addListener(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "close", listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "connection", listener: (socket: Socket) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
addListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "error", listener: (err: Error) => void): this; // ---------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: "listening", listener: () => void): this; // ------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
emit Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
            
                    emit(event: string | symbol, ...args: any[]): boolean; // ------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "close"): boolean; // ------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
emit Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "connection", socket: Socket): boolean; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
emit Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "error", err: Error): boolean; // ---------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
emit Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    emit(event: "listening"): boolean; // --------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
on Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    on(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "close", listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "connection", listener: (socket: Socket) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
on Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "error", listener: (err: Error) => void): this; // ---------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: "listening", listener: () => void): this; // ------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    once(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "close", listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "connection", listener: (socket: Socket) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
once Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "error", listener: (err: Error) => void): this; // ---------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: "listening", listener: () => void): this; // ------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    prependListener(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "close", listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "connection", listener: (socket: Socket) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "error", listener: (err: Error) => void): this; // ---------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: "listening", listener: () => void): this; // ------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
            
                    prependOnceListener(event: string, listener: (...args: any[]) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "close", listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "connection", listener: (socket: Socket) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "error", listener: (err: Error) => void): this; // ---------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: "listening", listener: () => void): this; // ------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
createServer Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
            
                function createServer(connectionListener?: (socket: Socket) => void): Server; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
createServer Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                
                function createServer(options?: { allowHalfOpen?: boolean, pauseOnConnect?: boolean }, connectionListener?: (socket: Socket) => void): Server; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
connect Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function connect(options: NetConnectOpts, connectionListener?: () => void): Socket; // ------------------------------------------------------------------ +0.6 Complexity index (+0.6 atomic)
            
                            
                        
connect Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
                function connect(port: number, host?: string, connectionListener?: () => void): Socket; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
connect Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function connect(path: string, connectionListener?: () => void): Socket; // ---------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
createConnection Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
createConnection Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                
                function createConnection(port: number, host?: string, connectionListener?: () => void): Socket; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
createConnection Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function createConnection(path: string, connectionListener?: () => void): Socket; // ---------------------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
isIP Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function isIP(input: string): number; // --------------------------------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
isIPv4 Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function isIPv4(input: string): boolean; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
isIPv6 Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                
                function isIPv6(input: string): boolean; // ------- +0.3 Complexity index (+0.3 atomic)