From 7b2c0d1fd9e4e5ba31dc721e1937f86c1aee8f0e Mon Sep 17 00:00:00 2001 From: mukunda katta Date: Fri, 15 May 2026 13:33:41 -0700 Subject: [PATCH] doc: document net Socket server property --- doc/api/net.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/api/net.md b/doc/api/net.md index 9b330a948019ab..84833afb4d1028 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1347,6 +1347,17 @@ added: v0.5.10 The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if the socket is destroyed (for example, if the client disconnected). +### `socket.server` + + + +* Type: {net.Server|null} + +Reference to the server that accepted the socket. This property is `null` for +sockets that were not created by a [`net.Server`][]. + ### `socket.resetAndDestroy()`