Skip to content

Commit

Permalink
doc,net: document socket.timeout
Browse files Browse the repository at this point in the history
PR-URL: #34543
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Harshitha K P <[email protected]>
Reviewed-By: Pranshu Srivastava <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Denys Otrishko <[email protected]>
  • Loading branch information
kobelb authored and danielleadams committed Nov 9, 2020
1 parent 99cb362 commit d6bd78f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,16 @@ If `timeout` is 0, then the existing idle timeout is disabled.
The optional `callback` parameter will be added as a one-time listener for the
[`'timeout'`][] event.

### `socket.timeout`
<!-- YAML
added: v10.7.0
-->

* {number|undefined}

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

### `socket.unref()`
<!-- YAML
added: v0.9.1
Expand Down

0 comments on commit d6bd78f

Please sign in to comment.