MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / failConnect

Function failConnect

app/src/modules/websocket.js:244–250  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

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) {

Callers 1

connectFunction · 0.70

Calls 3

hideHubConnectOverlayFunction · 0.90
renderHubCardsFunction · 0.90
showToastFunction · 0.90

Tested by

no test coverage detected