@@ -923,8 +923,7 @@ added: v0.3.0
923
923
924
924
Reference to the underlying socket. Usually users will not want to access
925
925
this property. In particular, the socket will not emit ` 'readable' ` events
926
- because of how the protocol parser attaches to the socket. The ` socket `
927
- may also be accessed via ` request.connection ` .
926
+ because of how the protocol parser attaches to the socket.
928
927
929
928
``` js
930
929
const http = require (' http' );
@@ -1154,7 +1153,7 @@ This event is emitted when a new TCP stream is established. `socket` is
1154
1153
typically an object of type [ ` net.Socket ` ] [ ] . Usually users will not want to
1155
1154
access this event. In particular, the socket will not emit ` 'readable' ` events
1156
1155
because of how the protocol parser attaches to the socket. The ` socket ` can
1157
- also be accessed at ` request.connection ` .
1156
+ also be accessed at ` request.socket ` .
1158
1157
1159
1158
This event can also be explicitly emitted by users to inject connections
1160
1159
into the HTTP server. In that case, any [ ` Duplex ` ] [ ] stream can be passed.
@@ -1655,8 +1654,7 @@ added: v0.3.0
1655
1654
Reference to the underlying socket. Usually users will not want to access
1656
1655
this property. In particular, the socket will not emit ` 'readable' ` events
1657
1656
because of how the protocol parser attaches to the socket. After
1658
- ` response.end() ` , the property is nulled. The ` socket ` may also be accessed
1659
- via ` response.connection ` .
1657
+ ` response.end() ` , the property is nulled.
1660
1658
1661
1659
``` js
1662
1660
const http = require (' http' );
@@ -2056,7 +2054,7 @@ added: v0.5.9
2056
2054
* ` callback ` {Function}
2057
2055
* Returns: {http.IncomingMessage}
2058
2056
2059
- Calls ` message.connection .setTimeout(msecs, callback) ` .
2057
+ Calls ` message.socket .setTimeout(msecs, callback) ` .
2060
2058
2061
2059
### ` message.socket `
2062
2060
<!-- YAML
0 commit comments