Lines Matching defs:connect
4 // This test checks that calling `net.connect` internally calls
5 // `Socket.prototype.connect`.
7 // This is important for people who monkey-patch `Socket.prototype.connect`
8 // since it's not possible to monkey-patch `net.connect` directly (as the core
9 // `connect` function is called internally in Node instead of calling the
10 // `exports.connect` function).
12 // Monkey-patching of `Socket.prototype.connect` is done by - among others -
23 // Monkey patch Socket.prototype.connect to check that it's called.
24 const orig = Socket.prototype.connect;
25 Socket.prototype.connect = common.mustCall(function() {
33 const client = net.connect({ port }, common.mustCall(function() {