Skip to content

Commit 226f2fb

Browse files
authored
Update index.bs
1 parent 36a14ba commit 226f2fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.bs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ URL: https://sockets-api.proposal.wintercg.org/
88
Repository: https://github.com/wintercg/proposal-sockets-api
99
Editor: Dominik Picheta, Cloudflare https://cloudflare.com/, [email protected]
1010
Editor: Ethan Arrowood, Vercel https://vercel.com/, [email protected]
11+
Editor: James M Snell, Cloudflare https://cloudflare.com/, [email protected]
1112
Abstract: Sockets API for Non-Browser EcmaScript-based runtimes.
1213
Markup Shorthands: markdown yes
1314
Markup Shorthands: idl yes
@@ -42,6 +43,8 @@ A socket becomes <i>closed</i> when its {{close()}} method is called. A socket c
4243

4344
<h3 id="connect-concept-section">Connect</h3>
4445

46+
<p class="note">The [=connect=] method here is defined in a `sockets` module here only for initial implementation purposes. It is imagined that in a finalized standard definition, the [=connect=] would be exposed as a global or within a [=binding object=]</p>
47+
4548
A socket can be constructed using a <dfn export id="connect-concept">connect</dfn> method defined in a `sockets` module (early implementations may use `vendor:sockets` for the module name), or defined on a [=binding object=].
4649

4750
The connect method is the primary mechanism for creating a [=socket=] instance. It instantiates a socket with a resource identifier and some configuration values. It should synchronously return a socket instance in a <i>pending</i> state (or an error should be thrown). The socket will asynchronously <i>connect</i> depending on the implementation.

0 commit comments

Comments
 (0)