Skip to content

Commit 54cf114

Browse files
XMB5targos
authored andcommitted
doc: clarify IncomingMessage.destroy() description
State that the 'error' event is emitted on the underlying socket, not the IncomingMessage object. PR-URL: #30255 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
1 parent fcae355 commit 54cf114

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/http.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1672,8 +1672,8 @@ added: v0.3.0
16721672
* `error` {Error}
16731673

16741674
Calls `destroy()` on the socket that received the `IncomingMessage`. If `error`
1675-
is provided, an `'error'` event is emitted and `error` is passed as an argument
1676-
to any listeners on the event.
1675+
is provided, an `'error'` event is emitted on the socket and `error` is passed
1676+
as an argument to any listeners on the event.
16771677

16781678
### message.headers
16791679
<!-- YAML

0 commit comments

Comments
 (0)