From 5c6e24e9c16780a6376e1dc4511e0842ecf16b09 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Sat, 9 Apr 2016 10:18:13 +0530 Subject: [PATCH] doc: document socket.destroyed Fixes: https://github.com/nodejs/node/issues/5898 PR-URL: https://github.com/nodejs/node/pull/6128 Reviewed-By: Colin Ihrig --- doc/api/net.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/api/net.md b/doc/api/net.md index 674478e73d0699..df8712a94e6284 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -520,6 +520,11 @@ added: v0.1.90 Ensures that no more I/O activity happens on this socket. Only necessary in case of errors (parse error or so). +### socket.destroyed + +A Boolean value that indicates if the connection is destroyed or not. Once a +connection is destroyed no further data can be transferred using it. + ### socket.end([data][, encoding])