doc: fix socket.connecting description
In particular, this value is `true` and not `false` between calling `connect()` and the operation finishing. PR-URL: https://github.com/nodejs/node/pull/24066 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
472a3d890b
commit
bb254578a6
@ -658,9 +658,9 @@ called with `{port: port, host: host}` as `options`.
|
||||
added: v6.1.0
|
||||
-->
|
||||
|
||||
If `true` -
|
||||
If `true`,
|
||||
[`socket.connect(options[, connectListener])`][`socket.connect(options)`]
|
||||
was called and haven't yet finished. Will be set to `false` before emitting
|
||||
was called and has not yet finished. Will be set to `true` before emitting
|
||||
`'connect'` event and/or calling
|
||||
[`socket.connect(options[, connectListener])`][`socket.connect(options)`]'s
|
||||
callback.
|
||||
|
Loading…
x
Reference in New Issue
Block a user