Skip to content

Commit 8ebb44d

Browse files
committed
doc: document net Socket server property
1 parent d955896 commit 8ebb44d

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
@@ -1347,6 +1347,17 @@ added: v0.5.10
13471347
The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if
13481348
the socket is destroyed (for example, if the client disconnected).
13491349

1350+
### `socket.server`
1351+
1352+
<!-- YAML
1353+
added: v0.3.4
1354+
-->
1355+
1356+
* Type: {net.Server|null}
1357+
1358+
Reference to the server that accepted the socket. This is `null` for sockets
1359+
that were not accepted by a server.
1360+
13501361
### `socket.resetAndDestroy()`
13511362

13521363
<!-- YAML

0 commit comments

Comments
 (0)