From 9d767bfa7dfa84f97ca4fd8271972599801616aa Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sat, 30 Sep 2023 09:03:00 -0700 Subject: [PATCH] Update index.bs --- index.bs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index e72124b..ac28e5d 100644 --- a/index.bs +++ b/index.bs @@ -287,9 +287,10 @@ The {{connect()}} method performs the following steps:
  1. New {{Socket}} instance is created with each of its attributes initialised immediately.
  2. The socket's {{opened}} promise is set to [=a new promise=]. Set |opened|.\[[PromiseIsHandled]] to true. +
  3. The socket's {{closed}} promise is set to [=a new promise=]. Set |closed|.\[[PromiseIsHandled]] to true.
  4. The created {{Socket}} instance is returned immediately in a pending state.
  5. A connection is established to the specified {{SocketAddress}} asynchronously.
  6. -
  7. Once the connection is established, set |info| to a new {{SocketInfo}}, and [=Resolve=] |opened| with |info|.
  8. +
  9. Once the connection is established, set |info| to a new {{SocketInfo}}, and [=Resolve=] |opened| with |info|. For a socket using secure transport, the connection is considered to be established once the secure handshake has been completed.
  10. If the connection fails for any reason, the socket's {{closed}} and {{opened}} promises are rejected with a [=SocketError=] describing why the connection failed.
  11. The instance's {{ReadableStream}} and {{WritableStream}} streams can be used immediately.
@@ -309,7 +310,7 @@ At any point during the creation of the {{Socket}} instance, `connect` may throw {{secureTransport}} member
- The secure transport mode to use.f + The secure transport mode to use.
{{off}}
A connection is established in plain text.