-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ URL: https://sockets-api.proposal.wintercg.org/ | |
Repository: https://github.com/wintercg/proposal-sockets-api | ||
Editor: Dominik Picheta, Cloudflare https://cloudflare.com/, [email protected] | ||
Editor: Ethan Arrowood, Vercel https://vercel.com/, [email protected] | ||
Editor: James M Snell, Cloudflare https://cloudflare.com/, [email protected] | ||
Abstract: Sockets API for Non-Browser EcmaScript-based runtimes. | ||
Markup Shorthands: markdown yes | ||
Markup Shorthands: idl yes | ||
|
@@ -42,6 +43,8 @@ A socket becomes <i>closed</i> when its {{close()}} method is called. A socket c | |
|
||
<h3 id="connect-concept-section">Connect</h3> | ||
|
||
<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> | ||
|
||
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=]. | ||
|
||
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. | ||
|