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 3293954 commit 11ae8f4Copy full SHA for 11ae8f4
doc/api/net.md
@@ -600,6 +600,10 @@ 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()`][].
606
+
607
#### `socket.connect(options[, connectListener])`
608
<!-- YAML
609
added: v0.1.90
0 commit comments