We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 503f279 commit 7aa7be0Copy full SHA for 7aa7be0
doc/api/http.markdown
@@ -92,7 +92,7 @@ When a new TCP stream is established. `socket` is an object of type
92
`net.Socket`. Usually users will not want to access this event. In
93
particular, the socket will not emit `readable` events because of how
94
the protocol parser attaches to the socket. The `socket` can also be
95
-accessed at `request.connection`.
+accessed at `request.socket`.
96
97
### Event: 'close'
98
@@ -1020,7 +1020,7 @@ received. Only populated at the 'end' event.
1020
* `msecs` {Number}
1021
* `callback` {Function}
1022
1023
-Calls `message.connection.setTimeout(msecs, callback)`.
+Calls `message.socket.setTimeout(msecs, callback)`.
1024
1025
Returns `message`.
1026
0 commit comments