Cloudflare Workers and Containers now support inbound TCP connections and gRPC Cloudflare announced support for inbound TCP connections and gRPC in Workers and Containers, introducing a new connect() handler that lets Workers accept TCP sockets and route them to Durable Objects or Containers. The feature is in private beta, with sign-ups available via a Google form. This enables low-latency communication for real-time AI applications like voice assistants. Cloudflare Workers and Containers now support inbound TCP connections and gRPC AI is changing how people interact with computers, and voice is becoming an increasingly important part of that shift. Real-time assistants, AI-powered dictation, and other voice interfaces need low-latency communication between clients, models, and supporting services. Many developers use gRPC https://grpc.io/ , a Remote Procedure Call RPC framework built on HTTP/2 and TCP, for this infrastructure. Ever since Workers launched in 2017 https://blog.cloudflare.com/introducing-cloudflare-workers/ , we’ve been expanding their capabilities, including adding the ability to and a https://blog.cloudflare.com/workers-tcp-socket-api-connect-databases/ open outbound TCP connections built on https://blog.cloudflare.com/workers-javascript-modules/ JavaScript-native RPC system . And so as part of Agents Week, we’re extending Workers in the other direction, supporting inbound TCP connections and adding new ways to run gRPC applications on Cloudflare. https://capnproto.org/ Cap’n Proto Today, we’re announcing: connect socket — a newin the Workers runtime that lets your Worker directly accept an inbound TCP socket provided by handler Cloudflare’s ingress proxy for non-HTTP traffic Spectrum Full-duplex, bi-directional gRPC from Cloudflare Containers — forward the socket from your Worker to your gRPC server running in a container Workers can serve unary and server-streaming gRPC APIs and call gRPC servers — you write your code using, and Cloudflare automatically converts incoming and outgoing requests to gRPC gRPC-web We’re introducing this in private beta — you can sign up here https://forms.gle/Q2SoJLUKjBFGxBgW6 . Let’s dig into each of these below. connect socket from your Worker to Durable Objects and Containers The Workers runtime now provides a connect handler https://developers.cloudflare.com/workers/runtime-apis/handlers/ that accepts a socket that you can read from and write to: js export default { async connect socket : Promise