GeezerVison is showing github.com — doc: clarify socket destroyed behavior · nodejs/node@1f790cb
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/net.md +3-3Lines changed: 3 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1404,15 +1404,15 @@ added: v0.1.90 |
1404 | 1404 | * `error` {Object} |
1405 | 1405 | * Returns: {net.Socket} |
1406 | 1406 |
|
1407 | | -Ensures that no more I/O activity happens on this socket. |
| 1407 | +Ensures that no more I/O activity happens on the current connection. |
1408 | 1408 | Destroys the stream and closes the connection. |
1409 | 1409 |
|
1410 | 1410 | See [`writable.destroy()`][] for further details. |
1411 | 1411 |
|
1412 | 1412 | ### `socket.destroyed` |
1413 | 1413 |
|
1414 | | -* Type: {boolean} Indicates if the connection is destroyed or not. Once a |
1415 | | - connection is destroyed no further data can be transferred using it. |
| 1414 | +* Type: {boolean} Indicates if the connection is destroyed or not. No further |
| 1415 | + data can be transferred using a destroyed connection. |
1416 | 1416 |
|
1417 | 1417 | See [`writable.destroyed`][] for further details. |
1418 | 1418 |
|
|