Skip to content

Commit

Permalink
doc: add net.Socket#timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
kobelb committed Jul 29, 2020
1 parent 4cee226 commit 317741e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/api/net.md
Expand Up @@ -914,6 +914,15 @@ 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}

Gets the read-only socket timeout in milliseconds.

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

0 comments on commit 317741e

Please sign in to comment.