diff --git a/doc/api/net.md b/doc/api/net.md index ea8d670a7eeb64..522f0d6232cd61 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -934,6 +934,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` + + +* {number|undefined} + +The socket timeout in milliseconds as set by [`socket.setTimeout()`][]. +It is `undefined` if a timeout has not been set. + ### `socket.unref()`