function connectconnect(options: NetConnectOpts,connectionListener?: () => void,): SocketDeprecatedAliases to createConnection. Possible signatures: connect connect for IPC connections. connect for TCP connections. Parametersoptions: NetConnectOptsoptionalconnectionListener: () => voidReturn TypeSocketconnect(port: number,host?: string,connectionListener?: () => void,): SocketDeprecatedParametersport: numberoptionalhost: stringoptionalconnectionListener: () => voidReturn TypeSocketconnect(path: string,connectionListener?: () => void,): SocketDeprecatedParameterspath: stringoptionalconnectionListener: () => voidReturn TypeSocket