mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: clarify IncomingMessage.destroy() description
State that the 'error' event is emitted on the underlying socket, not the IncomingMessage object. PR-URL: https://github.com/nodejs/node/pull/30255 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
This commit is contained in:
1 parent
ca960614af
commit
7bc8c85d53
1 file changed
+2
-2
+2
-2
@@ -1672,8 +1672,8 @@ added: v0.3.0
|
||||
* `error` {Error}
|
||||
|
||||
Calls `destroy()` on the socket that received the `IncomingMessage`. If `error`
|
||||
is provided, an `'error'` event is emitted and `error` is passed as an argument
|
||||
to any listeners on the event.
|
||||
is provided, an `'error'` event is emitted on the socket and `error` is passed
|
||||
as an argument to any listeners on the event.
|
||||
|
||||
### message.headers
|
||||
<!-- YAML
|
||||
|
||||
Reference in new issue
Block a user