<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/cloudflare-workers-accept-inbound-tcp-with-grpc-the-first-protocol-on-top-pplojcdxn" -->

---
title: Cloudflare Workers Accept Inbound TCP, with gRPC the...
description: Cloudflare Workers can now accept inbound TCP connections through a new connect(socket) handler, ending an eight-year restriction to HTTP-only serving. Routed...
canonical: https://daily.dev/posts/cloudflare-workers-accept-inbound-tcp-with-grpc-the-first-protocol-on-top-pplojcdxn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Cloudflare Workers Accept Inbound TCP, with gRPC the First Protocol on Top | daily.dev
og:description: Cloudflare Workers can now accept inbound TCP connections through a new connect(socket) handler, ending an eight-year restriction to HTTP-only serving. Routed...
og:url: https://daily.dev/posts/cloudflare-workers-accept-inbound-tcp-with-grpc-the-first-protocol-on-top-pplojcdxn
og:image: https://api.daily.dev/og/posts/pPLOjcdXN.png
og:image:alt: Cloudflare Workers Accept Inbound TCP, with gRPC the First Protocol on Top
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloudflare Workers Accept Inbound TCP, with gRPC the First Protocol on Top

**[InfoQ](https://daily.dev/sources/infoq)** · 5 min read · 0 upvotes · 0 comments

## Summary

Cloudflare Workers can now accept inbound TCP connections through a new connect(socket) handler, ending an eight-year restriction to HTTP-only serving. Routed via Spectrum, sockets can flow from a Worker to a Durable Object to a Container, where full-duplex gRPC works in any language. Workers themselves get only unary and server-streaming gRPC via automatic gRPC-web translation, since HTTP/2 stream-level control isn't exposed to fetch(). Cloudflare admits it doesn't use gRPC internally (relying on Cap'n Proto and its own JS-native RPC), which is why everything ships as private beta rather than GA. A developer questioned whether Workers expose enough backpressure control for gRPC streaming, a point the announcement doesn't address. Cloudflare's own social post overstated availability, calling it "now available" when it's still gated behind a signup form.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.infoq.com/news/2026/08/workers-inbound-tcp-grpc>

## Questions this post answers

### Can Cloudflare Workers accept inbound TCP connections now?

Yes, a new connect(socket) handler lets Workers accept raw inbound TCP connections, routed through Spectrum, Cloudflare's ingress proxy for non-HTTP traffic. This ends an eight-year restriction where Workers could only serve HTTP, though could already open outbound sockets. The socket can be handled directly, passed to another Worker, or forwarded to a Durable Object and then a Container.

_daily.dev surfaces platform changes like this for engineers deciding whether Workers can now replace a TCP-based backend._

### Do Cloudflare Workers support full gRPC bidirectional streaming?

No, Workers only support unary and server-streaming gRPC, not bidirectional streaming, because the mechanism is translation rather than native support: developer code uses gRPC-web and Cloudflare converts it to and from real gRPC. Full-duplex gRPC in any language is only available by passing the connection through to a Container via a Durable Object.

_Teams evaluating gRPC on Workers can track these streaming limits alongside similar architecture decisions on daily.dev._

### Why is Cloudflare's inbound TCP and gRPC support only in private beta rather than generally available?

Cloudflare states it does not use gRPC internally, relying instead on Cap'n Proto, Cap'n Web, and its own JavaScript-native RPC system, and prefers to validate the implementation with a smaller group of gRPC developers before general availability. This contrasts with Cloudflare's own social media post, which described the feature as already available and serving gRPC natively without translation layers.

_daily.dev helps engineers separate vendor announcements from what's actually shipped when adopting new infrastructure like this._

## Similar posts on daily.dev

- [Cloudflare Workers and Containers now support inbound TCP connections and gRPC](https://daily.dev/posts/cloudflare-workers-and-containers-now-support-inbound-tcp-connections-and-grpc-ip5ywscgz) · Cloudflare · 7 upvotes · 0 comments
- [gRPC vs REST Is the Wrong Question · Buf](https://daily.dev/posts/grpc-vs-rest-is-the-wrong-question-buf-xe2qehlxz) · Buf Blog · 109 upvotes · 4 comments
- [How workerd, the Cloudflare Workers runtime, is built](https://daily.dev/posts/how-workerd-the-cloudflare-workers-runtime-is-built-jripr3oyh) · Flavio Copes · 0 upvotes · 0 comments

---

Tags: [#serverless](https://daily.dev/tags/serverless), [#cloudflare](https://daily.dev/tags/cloudflare), [#edge-computing](https://daily.dev/tags/edge-computing), [#grpc](https://daily.dev/tags/grpc)

[View this post on daily.dev](https://daily.dev/posts/cloudflare-workers-accept-inbound-tcp-with-grpc-the-first-protocol-on-top-pplojcdxn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Cloudflare Workers Accept Inbound TCP, with gRPC the First Protocol on Top","url":"https://daily.dev/posts/cloudflare-workers-accept-inbound-tcp-with-grpc-the-first-protocol-on-top-pplojcdxn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/cloudflare-workers-accept-inbound-tcp-with-grpc-the-first-protocol-on-top-pplojcdxn"},"datePublished":"2026-08-29T10:03:55.847Z","dateModified":"2026-09-13T19:47:10.507Z","description":"Cloudflare Workers can now accept inbound TCP connections through a new connect(socket) handler, ending an eight-year restriction to HTTP-only serving. Routed...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c140a1fa332b147cfe211e785a09e83b?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c140a1fa332b147cfe211e785a09e83b?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"InfoQ","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"InfoQ","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/afc3bced3e1e4b188dd9127017a60e0c","url":"https://daily.dev/sources/infoq"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/cloudflare-workers-accept-inbound-tcp-with-grpc-the-first-protocol-on-top-pplojcdxn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"serverless,cloudflare,edge-computing,grpc","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"InfoQ","item":"https://daily.dev/sources/infoq"},{"@type":"ListItem","position":3,"name":"Cloudflare Workers Accept Inbound TCP, with gRPC the First Protocol on Top"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/cloudflare-workers-accept-inbound-tcp-with-grpc-the-first-protocol-on-top-pplojcdxn#faq","mainEntity":[{"@type":"Question","name":"Can Cloudflare Workers accept inbound TCP connections now?","acceptedAnswer":{"@type":"Answer","text":"Yes, a new connect(socket) handler lets Workers accept raw inbound TCP connections, routed through Spectrum, Cloudflare's ingress proxy for non-HTTP traffic. This ends an eight-year restriction where Workers could only serve HTTP, though could already open outbound sockets. The socket can be handled directly, passed to another Worker, or forwarded to a Durable Object and then a Container. daily.dev surfaces platform changes like this for engineers deciding whether Workers can now replace a TCP-based backend."}},{"@type":"Question","name":"Do Cloudflare Workers support full gRPC bidirectional streaming?","acceptedAnswer":{"@type":"Answer","text":"No, Workers only support unary and server-streaming gRPC, not bidirectional streaming, because the mechanism is translation rather than native support: developer code uses gRPC-web and Cloudflare converts it to and from real gRPC. Full-duplex gRPC in any language is only available by passing the connection through to a Container via a Durable Object. Teams evaluating gRPC on Workers can track these streaming limits alongside similar architecture decisions on daily.dev."}},{"@type":"Question","name":"Why is Cloudflare's inbound TCP and gRPC support only in private beta rather than generally available?","acceptedAnswer":{"@type":"Answer","text":"Cloudflare states it does not use gRPC internally, relying instead on Cap'n Proto, Cap'n Web, and its own JavaScript-native RPC system, and prefers to validate the implementation with a smaller group of gRPC developers before general availability. This contrasts with Cloudflare's own social media post, which described the feature as already available and serving gRPC natively without translation layers. daily.dev helps engineers separate vendor announcements from what's actually shipped when adopting new infrastructure like this."}}]}
```

