Skip to content

Commit

Permalink
doc: fix socket.connecting description
Browse files Browse the repository at this point in the history
In particular, this value is `true` and not `false`
between calling `connect()` and the operation finishing.

PR-URL: #24066
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
addaleax authored and MylesBorins committed Nov 29, 2018
1 parent 4fb93d1 commit 40c3752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 40c3752

Please sign in to comment.