Skip to content

Commit d6bd78f

Browse files
kobelbdanielleadams
authored andcommitted
doc,net: document socket.timeout
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]>
1 parent 99cb362 commit d6bd78f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/api/net.md

+10
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,16 @@ If `timeout` is 0, then the existing idle timeout is disabled.
998998
The optional `callback` parameter will be added as a one-time listener for the
999999
[`'timeout'`][] event.
10001000

1001+
### `socket.timeout`
1002+
<!-- YAML
1003+
added: v10.7.0
1004+
-->
1005+
1006+
* {number|undefined}
1007+
1008+
The socket timeout in milliseconds as set by [`socket.setTimeout()`][].
1009+
It is `undefined` if a timeout has not been set.
1010+
10011011
### `socket.unref()`
10021012
<!-- YAML
10031013
added: v0.9.1

0 commit comments

Comments
 (0)