We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11ae8f4 commit 74430ceCopy full SHA for 74430ce
doc/api/net.md
@@ -600,9 +600,9 @@ the error passed to the [`'error'`][] listener.
600
The last parameter `connectListener`, if supplied, will be added as a listener
601
for the [`'connect'`][] event **once**.
602
603
-This function should not be used for reconnecting a socket. Calling
604
-[`socket.connect()`][] a second time leads to undefined behavior.
605
-[`net.connect()`][] implicitly calls [`socket.connect()`][].
+This function should only be used for reconnecting a socket after
+`'close'` has been emitted or otherwise it may lead to undefined
+behavior.
606
607
#### `socket.connect(options[, connectListener])`
608
<!-- YAML
0 commit comments