Open
Description
Bug Description
In Pool
dispatcher socketPath
option is not passed to the connect
if connect
is a function.
Reproducible By
const dispatcher = new Agent ( {
socketPath: "/var/run/socket",
connect ( options, callback ) {
console.log( options );
process.exit();
}
} )
await fetch( "http://local/", {
dispatcher
} );
Expected Behavior
Expecting to see socketPath
in options, passed to the connect
function.
When connect
is specified as object - it works, but for function you just forget to pass socketPath
.