diff --git a/doc/api/net.md b/doc/api/net.md index 3bf9a68a8abf09..e4c758aeaf01a6 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -914,6 +914,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()`