From 1a913671c72b7b32647e70cdb6a700c41dfc834c Mon Sep 17 00:00:00 2001 From: Efe Karasakal Date: Wed, 8 Jul 2026 17:20:15 +0200 Subject: [PATCH] doc: document net Socket server property Based on the change proposed in #63458 by @Herrtian. Signed-off-by: Efe Karasakal --- doc/api/net.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/api/net.md b/doc/api/net.md index e2f06776409898..48c44ad297c088 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1362,6 +1362,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 is `null` for sockets +that were not accepted by a server. + ### `socket.resetAndDestroy()`