
A Socket API that works across JavaScript runtimes — announcing a WinterCG spec and Node.js implementation of connect()
9/28/2023
Published a draft specification for the connect() sockets API, designed for cross-runtime compatibility in JavaScript environments. Released a Node.js implementation of this API to facilitate adoption by library maintainers and application developers. The API is promise-based and leverages existing web standards like ReadableStream and WritableStream. It supports plain-text, TLS, and startTLS modes for secure connections. The goal is to eventually contribute this API as a built-in feature to Node.js.

