Cloudflare and Vercel have announced their support for the Web-interoperable Runtimes Community Group’s (wintercg) Socket API, allowing non-browser applications to connect to external services.
Currently, runtimes have different APIs, such as NodeJS’s net and tls, while Deno has its own API, requiring code modifications for applications.
Cloudflare has adopted this Socket API standard for their own Cloudflare Workers, emphasizing the ease of selecting and using TLS. A key use case for this library is connecting to databases like MySQL or PostgreSQL from within the runtime.
TLDR: Cloudflare and Vercel support the Socket API standard, enabling non-browser applications to connect to external services easily in Cloudflare Workers. This enhances the flexibility of choosing TLS and simplifies database connections within the runtime.