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 7bae433 commit 919e581Copy full SHA for 919e581
doc/api/net.md
@@ -1024,6 +1024,16 @@ See [`writable.destroy()`][] for further details.
1024
1025
See [`writable.destroyed`][] for further details.
1026
1027
+### `socket.destroySoon()`
1028
+
1029
+<!-- YAML
1030
+added: v0.3.4
1031
+-->
1032
1033
+Destroys the socket after all data is written. If the `'finish'` event was
1034
+already emitted the socket is destroyed immediately. If the socket is still
1035
+writable it implicitly calls `socket.end()`.
1036
1037
### `socket.end([data[, encoding]][, callback])`
1038
1039
<!-- YAML
0 commit comments