| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -209,8 +209,7 @@ buffer. Returns `false` if all or part of the data was queued in user memory. | |||
| 209 | 209 | #### stream.end([data], [encoding]) | |
| 210 | 210 | ||
| 211 | 211 | Half-closes the stream. I.E., it sends a FIN packet. It is possible the | |
| 212 | - server will still send some data. After calling this `readyState` will be | ||
| 213 | - `'readOnly'`. | ||
| 212 | + server will still send some data. | ||
| 214 | 213 | ||
| 215 | 214 | If `data` is specified, it is equivalent to calling `stream.write(data, encoding)` | |
| 216 | 215 | followed by `stream.end()`. | |
@@ -262,9 +261,6 @@ The string representation of the remote IP address. For example, | |||
| 262 | 261 | ||
| 263 | 262 | This member is only present in server-side connections. | |
| 264 | 263 | ||
| 265 | - #### stream.readyState | ||
| 266 | - | ||
| 267 | - Either `'closed'`, `'open'`, `'opening'`, `'readOnly'`, or `'writeOnly'`. | ||
| 268 | 264 | ||
| 269 | 265 | #### Event: 'connect' | |
| 270 | 266 | ||
@@ -291,9 +287,7 @@ By default (`allowHalfOpen == false`) the stream will destroy its file | |||
| 291 | 287 | descriptor once it has written out its pending write queue. However, by | |
| 292 | 288 | setting `allowHalfOpen == true` the stream will not automatically `end()` | |
| 293 | 289 | its side allowing the user to write arbitrary amounts of data, with the | |
| 294 | - caveat that the user is required to `end()` their side now. In the | ||
| 295 | - `allowHalfOpen == true` case after `'end'` is emitted the `readyState` will | ||
| 296 | - be `'writeOnly'`. | ||
| 290 | + caveat that the user is required to `end()` their side now. | ||
| 297 | 291 | ||
| 298 | 292 | ||
| 299 | 293 | #### Event: 'timeout' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments