GeezerVison is showing github.com — doc: fix socket.readyState state descriptions · nodejs/node@bced143
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/net.md +5-4Lines changed: 5 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1678,10 +1678,11 @@ added: v0.5.0 |
1678 | 1678 |
|
1679 | 1679 | This property represents the state of the connection as a string. |
1680 | 1680 |
|
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`. |
1685 | 1686 |
|
1686 | 1687 | ## Class: `net.BoundSocket` |
1687 | 1688 |
|
|