Search
Setup for Free
CD
Cloudflare Developers
•
3y ago
atgctg
Would Cloudflare Websockets work with a Next.js + tRPC project hosted on Pages?
https://trpc.io/docs/subscriptions
Subscriptions / WebSockets | tRPC
Using Subscriptions
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,384
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
A
atgctg
OP
•
7/14/23, 8:10 AM
I don
't think I
'd need to use Durable Objects for my use case
<
<donchev />
•
7/14/23, 8:12 AM
you
'll need to host the tRPC server somewhere if you want to use their subscriptions
/ websockets
<
<donchev />
•
7/14/23, 8:12 AM
or you can do it with durable objects
A
atgctg
OP
•
7/14/23, 10:20 AM
can
't you use websockets without durable objects
?
A
atgctg
can't you use websockets without durable objects?
<
<donchev />
•
7/14/23, 1:34 PM
you can
. If you dont need coordination among websockets you can do this from the worker
:
https://developers.cloudflare.com/workers/runtime-apis/websockets/use-websockets/
Use WebSockets · Cloudflare Workers docs
WebSockets allow you to communicate in real time with your Cloudflare Workers serverless functions
. In this guide
, you will learn the basics of
…
Similar Threads
Next.js on Cloudflare pages
CD
Cloudflare Developers / general-help
9mo ago
Cloudflare Pages / Next.js migrated from Self-hosted based on Docker
CD
Cloudflare Developers / pages-help
2y ago
Next.js + Cloudflare pages functions
CD
Cloudflare Developers / pages-help
11mo ago
Caching & TOO_MANY_REDIRECTS on Next.js project deployed with Cloudflare Pages
CD
Cloudflare Developers / pages-help
5mo ago