Skip to content

Commit 74430ce

Browse files
committed
fixup
1 parent 11ae8f4 commit 74430ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/net.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,9 @@ the error passed to the [`'error'`][] listener.
600600
The last parameter `connectListener`, if supplied, will be added as a listener
601601
for the [`'connect'`][] event **once**.
602602

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()`][].
603+
This function should only be used for reconnecting a socket after
604+
`'close'` has been emitted or otherwise it may lead to undefined
605+
behavior.
606606

607607
#### `socket.connect(options[, connectListener])`
608608
<!-- YAML

0 commit comments

Comments
 (0)