Skip to content

Commit 1b42f76

Browse files
authored
doc: fix socket.readyState state descriptions
Signed-off-by: yusheng <[email protected]> PR-URL: #64468 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 5b27fb9 commit 1b42f76

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎doc/api/net.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,10 +1688,11 @@ added: v0.5.0
16881688

16891689
This property represents the state of the connection as a string.
16901690

1691-
* If the stream is connecting `socket.readyState` is `opening`.
1692-
* If the stream is readable and writable, it is `open`.
1693-
* If the stream is readable and not writable, it is `readOnly`.
1694-
* If the stream is not readable and writable, it is `writeOnly`.
1691+
* If the socket is connecting, `socket.readyState` is `opening`.
1692+
* If the socket is readable and writable, it is `open`.
1693+
* If the socket is readable and not writable, it is `readOnly`.
1694+
* If the socket is not readable and writable, it is `writeOnly`.
1695+
* Otherwise, it is `closed`.
16951696

16961697
## Class: `net.BoundSocket`
16971698

0 commit comments

Comments
 (0)