diff --git a/doc/api/net.md b/doc/api/net.md index 7a58bf23108710..48c59aa97e1fdb 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -405,6 +405,11 @@ with options either as either `{port: port, host: host}` or `{path: path}`. 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]) Half-closes the socket. i.e., it sends a FIN packet. It is possible the