MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / scheduleReconnect

Function scheduleReconnect

web/js/chat.js:218–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216}
217
218function scheduleReconnect() {
219 if (!shouldMaintainWs || !hasConfiguredWebAuth() || reconnectTimer !== null) {
220 return;
221 }
222
223 reconnectTimer = window.setTimeout(() => {
224 reconnectTimer = null;
225 void ensureBackgroundWsConnection();
226 }, 1000);
227}
228
229async function ensureBackgroundWsConnection() {
230 try {

Callers 1

getOrCreateWsFunction · 0.85

Calls 2

hasConfiguredWebAuthFunction · 0.85

Tested by

no test coverage detected