TCP sockets not working in production

Hi, I'm trying to play around with the connect() api - everything works perfectly locally but when deployed (or with local mode off) I haven't been able to make it work successfully. Using this example from the docs, it works as expected locally but in production throws "Socket connection failed: TypeError: This ReadableStream is disturbed (has already been read from), and cannot be used as a body." Is this a bug? Does it work when deployed for anyone else? Thanks!
Cloudflare Docs
TCP sockets · Cloudflare Workers docs
Use the connect() API to create outbound TCP connections from Workers.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?