| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1024,6 +1024,16 @@ See [`writable.destroy()`][] for further details. | |||
| 1024 | 1024 | ||
| 1025 | 1025 | See [`writable.destroyed`][] for further details. | |
| 1026 | 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 | + | ||
| 1027 | 1037 | ### `socket.end([data[, encoding]][, callback])` | |
| 1028 | 1038 | ||
| 1029 | 1039 | <!-- YAML | |
| Back | FazBrowse Home | New Git URL |
0 commit comments