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 <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
addaleax authored and targos committed Nov 5, 2018
1 parent fa84164 commit 94f7394
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 94f7394

Please sign in to comment.