Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d73c99f

Browse filesBrowse files
TrottFishrock123
authored andcommitted
doc: add argument information for socket.destroy()
PR-URL: #7238 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
1 parent 22f3336 commit d73c99f
Copy full SHA for d73c99f

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/net.md‎

Copy file name to clipboardExpand all lines: doc/api/net.md
+4-1Lines changed: 4 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -512,14 +512,17 @@ If `true` - [`socket.connect(options[, connectListener])`][`socket.connect(optio
512512
haven't yet finished. Will be set to `false` before emitting `connect` event
513513
and/or calling [`socket.connect(options[, connectListener])`][`socket.connect(options, connectListener)`]'s callback.
514514

515-
### socket.destroy()
515+
### socket.destroy([exception])
516516
<!-- YAML
517517
added: v0.1.90
518518
-->
519519

520520
Ensures that no more I/O activity happens on this socket. Only necessary in
521521
case of errors (parse error or so).
522522

523+
If `exception` is specified, an [`'error'`][] event will be emitted and any
524+
listeners for that event will receive `exception` as an argument.
525+
523526
### socket.destroyed
524527

525528
A Boolean value that indicates if the connection is destroyed or not. Once a

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.