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!