diff --git a/doc/api/net.md b/doc/api/net.md index 9b330a948019ab..67491c0d687703 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 is `null` for sockets +that were not accepted by a server. + ### `socket.resetAndDestroy()`