Error: internal error when replied to a get request with websocket upgrade headers with a websocket
In one of my subdomains, I am redirecting a post request containing websocket upgrade headers to another subdomain with 303 response and returning a websocket response from redirected url with
where code is essentially the example in the docs, websockets are created with
where code is essentially the example in the docs, websockets are created with
WebSocketPair() However, after I return the response I am getting an Error: internal error on wrangler tail and 400 Bad request from client. Any suggestions on what to how to figure out what is wrong or debug? I tried to add try-catch to outermost layer that I have access to and it doesn't catch anything. Thanks!