Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

A Socket API that works across JavaScript runtimes — announcing a WinterCG spec and Node.js implementation of connect()

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Dominik Picheta, James M Snell, Ethan Arrowood (Guest author)
Word Count
873
Company Posts That Month
51
Language
English
Hacker News Points
-
Post removed?
No
Summary

This year, the Web-interoperable Runtimes Community Group (WinterCG) has reached a milestone in developing the connect() sockets API for creating outbound TCP connections across various runtimes and platforms, including Node.js. Cloudflare and Vercel engineers have published a draft specification along with a compatible implementation of the connect() API for developers to use today. This new standard aims to address compatibility issues and make it easier for maintainers of open-source libraries by replacing callback-based node:net and node:tls APIs. The proposed Promise-based API is designed based on feedback from the JavaScript community, reusing existing standards when possible. It uses ReadableStream and WritableStream for data transfer. A Node.js implementation of connect() has been released to help open-source library maintainers adopt the new standard without maintaining runtime-specific code. The draft specification is now available for feedback before contributing a direct implementation in Node.js.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Serverless 1 395 102 60 -55%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.