property
tty.ReadStream.readyState
readonly readyState: SocketReadyState
This property represents the state of the connection as a string.
- If the socket is connecting,
socket.readyStateisopening. - If the socket is readable and writable, it is
open. - If the socket is readable and not writable, it is
readOnly. - If the socket is not readable and writable, it is
writeOnly. - Otherwise, it is
closed.