Skip to content

Commit 1f790cb

Browse files
dayun6530aduh95
authored andcommitted
doc: clarify socket destroyed behavior
Signed-off-by: Dayun <dlekdbs6530@gmail.com> PR-URL: #65395 Fixes: #57367 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
1 parent 14b4a16 commit 1f790cb

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
@@ -1404,15 +1404,15 @@ added: v0.1.90
14041404
* `error` {Object}
14051405
* Returns: {net.Socket}
14061406

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.
14081408
Destroys the stream and closes the connection.
14091409

14101410
See [`writable.destroy()`][] for further details.
14111411

14121412
### `socket.destroyed`
14131413

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.
14161416

14171417
See [`writable.destroyed`][] for further details.
14181418

0 commit comments

Comments
 (0)