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

Function ensureBackgroundWsConnection

web/js/chat.js:229–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227}
228
229async function ensureBackgroundWsConnection() {
230 try {
231 await getOrCreateWs({ background: true });
232 } catch (err) {
233 console.warn("Background WebSocket connection failed:", err);
234 }
235}
236
237export function refreshWebSocketConnectionPreference() {
238 shouldMaintainWs = hasConfiguredWebAuth();

Callers 3

initChatFunction · 0.85
scheduleReconnectFunction · 0.85

Calls 1

getOrCreateWsFunction · 0.85

Tested by

no test coverage detected