Skip to content

Commit 5c6e24e

Browse files
tusharmathFishrock123
authored andcommitted
doc: document socket.destroyed
Fixes: #5898 PR-URL: #6128 Reviewed-By: Colin Ihrig <[email protected]>
1 parent aad7d41 commit 5c6e24e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api/net.md

+5
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,11 @@ added: v0.1.90
520520
Ensures that no more I/O activity happens on this socket. Only necessary in
521521
case of errors (parse error or so).
522522

523+
### socket.destroyed
524+
525+
A Boolean value that indicates if the connection is destroyed or not. Once a
526+
connection is destroyed no further data can be transferred using it.
527+
523528
### socket.end([data][, encoding])
524529
<!-- YAML
525530
added: v0.1.90

0 commit comments

Comments
 (0)