Skip to content

Commit b4a0419

Browse files
samuel871211aduh95
authored andcommitted
doc: fix socket.readyState state descriptions
Signed-off-by: yusheng <samuel871211@gmail.com> PR-URL: #64468 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent f303f47 commit b4a0419

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
@@ -1682,10 +1682,11 @@ added: v0.5.0
16821682

16831683
This property represents the state of the connection as a string.
16841684

1685-
* If the stream is connecting `socket.readyState` is `opening`.
1686-
* If the stream is readable and writable, it is `open`.
1687-
* If the stream is readable and not writable, it is `readOnly`.
1688-
* If the stream is not readable and writable, it is `writeOnly`.
1685+
* If the socket is connecting, `socket.readyState` is `opening`.
1686+
* If the socket is readable and writable, it is `open`.
1687+
* If the socket is readable and not writable, it is `readOnly`.
1688+
* If the socket is not readable and writable, it is `writeOnly`.
1689+
* Otherwise, it is `closed`.
16891690

16901691
## Class: `net.BoundSocket`
16911692

0 commit comments

Comments
 (0)