File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -512,14 +512,17 @@ If `true` - [`socket.connect(options[, connectListener])`][`socket.connect(optio
512512haven't yet finished. Will be set to `false` before emitting `connect` event
513513and/or calling [`socket.connect(options[, connectListener])`][`socket.connect(options, connectListener)`]'s callback.
514514
515- ### socket.destroy()
515+ ### socket.destroy([exception] )
516516<!-- YAML
517517added: v0.1.90
518518-->
519519
520520Ensures that no more I/O activity happens on this socket. Only necessary in
521521case 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
525528A Boolean value that indicates if the connection is destroyed or not. Once a
You can’t perform that action at this time.
0 commit comments