Socket.prototype.readyState - Node documentation
property Socket.prototype.readyState

Usage in Deno

import { Socket } from "node:net";

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

  • If the stream is connecting socket.readyState is opening.
  • If the stream is readable and writable, it is open.
  • If the stream is readable and not writable, it is readOnly.
  • If the stream is not readable and writable, it is writeOnly.

Type