Skip to content

Commit 3194059

Browse files
efekrsklHerrtian
authored andcommitted
doc: document net Socket server property
Based on #63458. Co-authored-by: Herrtian <70463940+Herrtian@users.noreply.github.com> Signed-off-by: Efe Karasakal <hi@efe.dev> Signed-off-by: Herrtian <70463940+Herrtian@users.noreply.github.com> PR-URL: #64364 Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 485d475 commit 3194059

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

doc/api/net.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,17 @@ added: v0.5.10
14001400
The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if
14011401
the socket is destroyed (for example, if the client disconnected).
14021402

1403+
### `socket.server`
1404+
1405+
<!-- YAML
1406+
added: v0.3.4
1407+
-->
1408+
1409+
* Type: {net.Server|null}
1410+
1411+
Reference to the server that accepted the socket. This is `null` for sockets
1412+
that were not accepted by a server.
1413+
14031414
### `socket.resetAndDestroy()`
14041415

14051416
<!-- YAML

0 commit comments

Comments
 (0)