From 74430ce8a2e8abdfc427c2ccb0aae85aace4b265 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Wed, 6 May 2020 22:41:30 +0200 Subject: [PATCH] fixup --- doc/api/net.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/net.md b/doc/api/net.md index d85bf56c895690..3e16d4a638f330 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -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])`