(message)
| 242 | let connectErrorShown = false; |
| 243 | const isCurrentSocket = () => S.ws === ws; |
| 244 | const failConnect = (message) => { |
| 245 | if (connectErrorShown) return; |
| 246 | connectErrorShown = true; |
| 247 | hideHubConnectOverlay(); |
| 248 | renderHubCards(); |
| 249 | showToast(message); |
| 250 | }; |
| 251 | try { |
| 252 | ws = new WebSocket(serverWsUrl); |
| 253 | } catch (e) { |
no test coverage detected