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