Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup
  • Loading branch information
ronag committed May 6, 2020
commit 74430ce8a2e8abdfc427c2ccb0aae85aace4b265
6 changes: 3 additions & 3 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,9 @@ the error passed to the [`'error'`][] listener.
The last parameter `connectListener`, if supplied, will be added as a listener
for the [`'connect'`][] event **once**.

This function should not be used for reconnecting a socket. Calling
[`socket.connect()`][] a second time leads to undefined behavior.
[`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.

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