Skip to content

Commit 00b9e59

Browse files
committed
doc: clarify socket destroyed behavior
Signed-off-by: Dayun <dlekdbs6530@gmail.com>
1 parent c79868f commit 00b9e59

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

doc/api/net.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,15 +1452,15 @@ added: v0.1.90
14521452
* `error` {Object}
14531453
* Returns: {net.Socket}
14541454

1455-
Ensures that no more I/O activity happens on this socket.
1455+
Ensures that no more I/O activity happens on the current connection.
14561456
Destroys the stream and closes the connection.
14571457

14581458
See [`writable.destroy()`][] for further details.
14591459

14601460
### `socket.destroyed`
14611461

1462-
* Type: {boolean} Indicates if the connection is destroyed or not. Once a
1463-
connection is destroyed no further data can be transferred using it.
1462+
* Type: {boolean} Indicates if the connection is destroyed or not. No further
1463+
data can be transferred using a destroyed connection.
14641464

14651465
See [`writable.destroyed`][] for further details.
14661466

0 commit comments

Comments
 (0)