Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: added documentation for socket.destroyed #6128

Closed
wants to merge 7 commits into from
5 changes: 5 additions & 0 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down