-
Notifications
You must be signed in to change notification settings - Fork 30k
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
http docs should refer to stream.Duplex instead of net.Socket #29948
Comments
I would be interested in working on this. Would the preference be to replace the references to |
Personally, I would prefer that, but let's see what other folks think. @nodejs/http @nodejs/streams |
There are some data about the connection itself available on a net.Socket and the other implementations that can be passed in there. IMHO we should mention that it is a stream.Duplex subclass, and put some sort of table somewhere. |
This commit is addressing the problem in issue nodejs#29948
@mcollina and @tniessen - I have a few silly questions for you on this issue. I agree that the docs for net.Socket documentation state pretty clearly that it extends stream.Duplex, but I am still not quite sure what the solution is that you are guys are suggestion. Are you suggesting that we modify the description of methods and events in Or are you simply suggesting that you want the docs for net.Socket documentation to be more explicate in saying that it extends stream.Duplex? This solution makes less sense to me because this class is not responsible for parameters passed into arbitrary events and method calls; but this solution would require less code changes, again not always a good thing. Finally, you mentioned adding a table somewhere and id like to confirm that I have the right idea for it. Were you thinking that it should be a table documenting which methods and events in Any feedback is warmly welcomed, I am a first time open source contributor but long time node user searching for a way to give back to the community. Thanks in advance :D |
The issue I see with that PR is that it doesn’t actually change the reference to But yeah, that generally seems to go in the right direction to me. 👍 |
Updating the docs based on feedback from @addaleax Fixes: nodejs#29948
Excellent. Thanks for the prompt feedback @addaleax. I updated the PR based on your comment so that the current solution can now be summarized as follows:
I'll begin scoping out all of the places that I need to update in this file (and possibly other files). In the meantime I welcome reviews/feedback of the following PR #30155 (same pr as above) from @addaleax, @tniessen, @mcollina, @devnexen and any others. |
This commit is addressing the problem in issue nodejs#29948
Updating the docs based on feedback from @addaleax Fixes: nodejs#29948
This commit is addressing the problem in issue #29948. Fixes: #29948 PR-URL: #30155 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is addressing the problem in issue #29948. Fixes: #29948 PR-URL: #30155 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is addressing the problem in issue #29948. Fixes: #29948 PR-URL: #30155 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
In many places in the documentation (example:
'socket'
event),socket
is not necessarily anet.Socket
, but always astream.Duplex
(whichnet.Socket
inherits from). We should at least mention that if we don't want to replace all references.The text was updated successfully, but these errors were encountered: