(...args)
| 242 | // connect(path, [cb]); |
| 243 | // |
| 244 | function connect(...args) { |
| 245 | const normalized = normalizeArgs(args); |
| 246 | const options = normalized[0]; |
| 247 | debug('createConnection', normalized); |
| 248 | const socket = new Socket(options); |
| 249 | |
| 250 | if (options.timeout) { |
| 251 | socket.setTimeout(options.timeout); |
| 252 | } |
| 253 | |
| 254 | return socket.connect(normalized); |
| 255 | } |
| 256 | |
| 257 | function getDefaultAutoSelectFamily() { |
| 258 | return autoSelectFamilyDefault; |
no test coverage detected
searching dependent graphs…