doc: add argument information for socket.destroy()

PR-URL: https://github.com/nodejs/node/pull/7238
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
This commit is contained in:
Rich Trott authored and Jeremiah Senkpiel committed 2016-07-05 22:11:41 +02:00
1 parent 9e9d7b8fba
commit 7aa2125fae
1 file changed
+4 -1
+4 -1
View File
@@ -512,7 +512,7 @@ If `true` - [`socket.connect(options[, connectListener])`][`socket.connect(optio
haven't yet finished. Will be set to `false` before emitting `connect` event
and/or calling [`socket.connect(options[, connectListener])`][`socket.connect(options, connectListener)`]'s callback.
### socket.destroy()
### socket.destroy([exception])
<!-- YAML
added: v0.1.90
-->
@@ -520,6 +520,9 @@ added: v0.1.90
Ensures that no more I/O activity happens on this socket. Only necessary in
case of errors (parse error or so).
If `exception` is specified, an [`'error'`][] event will be emitted and any
listeners for that event will receive `exception` as an argument.
### socket.destroyed
A Boolean value that indicates if the connection is destroyed or not. Once a