From bf1ad8323d0dddd56d346fc847891eac24f1ffe1 Mon Sep 17 00:00:00 2001 From: yusheng Date: Mon, 13 Jul 2026 13:57:54 +0800 Subject: [PATCH] doc: fix socket.readyState state descriptions Signed-off-by: yusheng --- doc/api/net.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/api/net.md b/doc/api/net.md index 81863d9b0a13c5..f1c1ddb781f3b7 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1677,10 +1677,11 @@ added: v0.5.0 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`. +* If the socket is connecting, `socket.readyState` is `opening`. +* 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`. ## Class: `net.BoundSocket`