MCPcopy Create free account
hub / github.com/hashintel/hash / getWebSocket

Function getWebSocket

apps/plugin-browser/src/scripts/background/infer-entities.ts:263–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261};
262
263const getWebSocket = async () => {
264 if (ws) {
265 await waitForConnection(ws);
266 return ws;
267 }
268
269 const newWs = await createWebSocket({ onClose: reconnectWebSocket });
270 await waitForConnection(newWs);
271
272 return newWs;
273};
274
275const sendInferEntitiesMessage = async (
276 params:

Callers 3

sendInferEntitiesMessageFunction · 0.85
cancelInferEntitiesFunction · 0.85
initFunction · 0.85

Calls 2

waitForConnectionFunction · 0.85
createWebSocketFunction · 0.85

Tested by

no test coverage detected