File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ per connection (in the case of keep-alive connections).
38
38
39
39
### Event: 'connection'
40
40
41
- ` function (stream ) { } `
41
+ ` function (socket ) { } `
42
42
43
- When a new TCP stream is established. ` stream ` is an object of type
44
- ` net.Stream ` . Usually users will not want to access this event. The
43
+ When a new TCP stream is established. ` socket ` is an object of type
44
+ ` net.Socket ` . Usually users will not want to access this event. The
45
45
` stream ` can also be accessed at ` request.connection ` .
46
46
47
47
### Event: 'close'
@@ -239,7 +239,7 @@ Resumes a paused request.
239
239
240
240
### request.connection
241
241
242
- The ` net.Stream ` object associated with the connection.
242
+ The ` net.Socket ` object associated with the connection.
243
243
244
244
245
245
With HTTPS support, use request.connection.verifyPeer() and
You can’t perform that action at this time.
0 commit comments