适用于JavaScript运行时的套接字API——发布WinterCG规范和Node.js实现的connect()
原文英文,约900词,阅读约需4分钟。发表于: 。Engineers from Cloudflare and Vercel have published a specification of the connect() sockets API for review by the community, along with a Node.js compatible implementation of connect() that...
Cloudflare和Vercel的工程师发布了一个新的API——connect(),用于创建出站TCP套接字,填补了JavaScript运行时中创建和使用TCP或UDP套接字的标准API的空白。该API是基于Promise的,并重用现有标准。