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