socket.writable.getWriter().write() hangs at 7th write
hello, i have a Cloudflare Workers to act like a "server ping service" using
cloudflare:sockets
. Below is my code for pinging an IP address using sockets, with amount
time, and server
is the WebSockets Server connected to client for sending back the ping data:
however, at the await writer.write(randomData);
, this always hang at 7th operation and I don't know why. can someone help me with this?1 Reply
I will connect to my workers through ws, then send ping request data to workers, then it will start sending back the ping data. and as the title described, it will hangs on 7th ping
but there is a very awkard thing that, if i continue send another ping request to my workers, even when it is hanging, it will continue the 1st job (not hanging anymore) and start 2nd job, until the 1st job exceed the ping amount and close the ws
still got no solution, can someone help me out of this 😅😅