TCP Socket does not seem to work on Worker
I have created a new worker using the example on https://developers.cloudflare.com/workers/runtime-apis/tcp-sockets/#connect (also below), under https://connect.fifo.workers.dev
When trying to access https://connect.fifo.workers.dev/gopher/wbgopher, it takes a long time and just returns a blank page.
It seems to stuck at responding with the ReadableStream from socket.
Code from the example:
Cloudflare Docs
TCP sockets · Cloudflare Workers docs
Use the
connect()
API to create outbound TCP connections from Workers.2 Replies
Code?
The same example code on the TCP sockets page:
Just a small update. I was able to open https://connect.fifo.workers.dev/gopher/wbgopher from clicking the link in this thread, and see the response text. However, when I refresh the link, the same issue happens.
Still does not work.