MCPcopy Create free account
hub / github.com/astercloud/aster / ensureWebSocket

Function ensureWebSocket

ui/src/composables/useAsterClient.ts:219–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217 };
218
219 const ensureWebSocket = async () => {
220 if (!ws.value || isConnected.value === false) {
221 await initWebSocket();
222 }
223 return ws.value;
224 };
225
226 const onMessage = (handler: (msg: any) => void) => {
227 if (!ws.value) {

Callers

nothing calls this directly

Calls 1

initWebSocketFunction · 0.85

Tested by

no test coverage detected