Skip to content

Commit

Permalink
doc: make it more obvious that net.Socket#timeout is potentially unde…
Browse files Browse the repository at this point in the history
…fined

Co-authored-by: Rich Trott <rtrott@gmail.com>
  • Loading branch information
kobelb and Trott committed Aug 11, 2020
1 parent 2841e70 commit 9166601
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -919,9 +919,10 @@ The optional `callback` parameter will be added as a one-time listener for the
added: v10.7.0
-->

* {number}
* {number|undefined}

Returns the read-only socket timeout in milliseconds.
The socket timeout in milliseconds as set by [`socket.setTimeout()`][].
It is `undefined` if a timeout has not been set.

### `socket.unref()`
<!-- YAML
Expand Down

0 comments on commit 9166601

Please sign in to comment.