Skip to content

Commit bced143

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 4b2c189 commit bced143

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

16791679
This property represents the state of the connection as a string.
16801680

1681-
* If the stream is connecting `socket.readyState` is `opening`.
1682-
* If the stream is readable and writable, it is `open`.
1683-
* If the stream is readable and not writable, it is `readOnly`.
1684-
* If the stream is not readable and writable, it is `writeOnly`.
1681+
* If the socket is connecting, `socket.readyState` is `opening`.
1682+
* If the socket is readable and writable, it is `open`.
1683+
* If the socket is readable and not writable, it is `readOnly`.
1684+
* If the socket is not readable and writable, it is `writeOnly`.
1685+
* Otherwise, it is `closed`.
16851686

16861687
## Class: `net.BoundSocket`
16871688

0 commit comments

Comments
 (0)