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 19bcba0 commit 47cd966Copy full SHA for 47cd966
doc/api/net.md
@@ -1051,6 +1051,16 @@ See [`writable.destroy()`][] for further details.
1051
1052
See [`writable.destroyed`][] for further details.
1053
1054
+### `socket.destroySoon()`
1055
+
1056
+<!-- YAML
1057
+added: v0.3.4
1058
+-->
1059
1060
+Destroys the socket after all data is written. If the `'finish'` event was
1061
+already emitted the socket is destroyed immediately. If the socket is still
1062
+writable it implicitly calls `socket.end()`.
1063
1064
### `socket.end([data[, encoding]][, callback])`
1065
1066
<!-- YAML
0 commit comments