Skip to content

Commit a70bddb

Browse files
kobelbBethGriggs
authored andcommitted
doc,net: document socket.timeout
PR-URL: #34543 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Pranshu Srivastava <rexagod@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
1 parent 9958392 commit a70bddb

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
@@ -934,6 +934,16 @@ If `timeout` is 0, then the existing idle timeout is disabled.
934934
The optional `callback` parameter will be added as a one-time listener for the
935935
[`'timeout'`][] event.
936936

937+
### `socket.timeout`
938+
<!-- YAML
939+
added: v10.7.0
940+
-->
941+
942+
* {number|undefined}
943+
944+
The socket timeout in milliseconds as set by [`socket.setTimeout()`][].
945+
It is `undefined` if a timeout has not been set.
946+
937947
### `socket.unref()`
938948
<!-- YAML
939949
added: v0.9.1

0 commit comments

Comments
 (0)