Skip to content

Commit add2851

Browse files
committed
doc: fix socket.readyState state descriptions
Signed-off-by: yusheng <samuel871211@gmail.com>
1 parent c286592 commit add2851

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)