| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1049,6 +1049,16 @@ See [`writable.destroy()`][] for further details. | |||
| 1049 | 1049 | ||
| 1050 | 1050 | See [`writable.destroyed`][] for further details. | |
| 1051 | 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 | + | ||
| 1052 | 1062 | ### `socket.end([data[, encoding]][, callback])` | |
| 1053 | 1063 | ||
| 1054 | 1064 | <!-- YAML | |
| Back | FazBrowse Home | New Git URL |
0 commit comments