We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d955896 commit 8ebb44dCopy full SHA for 8ebb44d
1 file changed
doc/api/net.md
@@ -1347,6 +1347,17 @@ added: v0.5.10
1347
The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if
1348
the socket is destroyed (for example, if the client disconnected).
1349
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
1361
### `socket.resetAndDestroy()`
1362
1363
<!-- YAML
0 commit comments