-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socket onread described on wrong function #53792
Comments
Thanks for the report! If you have an improvement, feel free to submit a PR! |
@lights0123 yes, it's still correct because Line 227 in b4e8f1b
I think a solution can be to move this function description to Socket class and mention on the |
Affected URL(s)
https://nodejs.org/api/net.html#new-netsocketoptions
Description of the problem
socket.connect()
is described as accepting the following option:However, this is not correct, and is actually accepted only in the
Socket()
constructor:node/lib/net.js
Line 454 in b4e8f1b
The example given using
net.connect()
is still correct because the options "Will be passed to both the newnet.Socket([options])
call and thesocket.connect(options[, connectListener])
method."The text was updated successfully, but these errors were encountered: