We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
socket.readyState
1 parent c5d27e1 commit ec6b78aCopy full SHA for ec6b78a
doc/api/net.md
@@ -964,6 +964,20 @@ written out, which may not be immediately.
964
See `Writable` stream [`write()`][stream_writable_write] method for more
965
information.
966
967
+### `socket.readyState`
968
+<!-- YAML
969
+added: v0.5.0
970
+-->
971
+
972
+* {string}
973
974
+This property represents the state of the connection as a string.
975
976
+* If the stream is connecting `socket.readyState` is `opening`.
977
+* If the stream is readable and writable, it is `open`.
978
+* If the stream is readable and not writable, it is `readOnly`.
979
+* If the stream is not readable and writable, it is `writeOnly`.
980
981
## `net.connect()`
982
983
Aliases to
0 commit comments