Skip to content

doc: Socket.prototype.connect(options[, connectListener])

Rodrigo Muino Tomonari requested to merge github/fork/Havvy/patch-2 into v1.x

I just copied the relevant options information from net.createConnection and the points about being asynchronous/unneeded from the other defined connect method.

The source code claims that the socket.connect parameters that were already documented is deprecated.

I think that net.connect(options[, connectListener]) should say that it passes the options object to both the Socket constructor and the connect method, and then have all options documented (they currently are not!).

Merge request reports

Loading