In `_websocketUrlConnects`, `timeoutFailure` did not close the WebSocket. Additionally, the reconnection logic in
`ws.onclose` did not have a fallback, which could lead to a high-resource-consuming loop.S, Aadded a 100ms delay to address this issue.closure