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

Function init

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

Source from the content-addressed store, hash-verified

425 * connections that the server will immediately kill.
426 */
427const init = async () => {
428 if (await isLoggedIn()) {
429 void getWebSocket();
430 }
431 // If no cookies, the WebSocket will be created on demand when
432 // getWebSocket() is called by a user action (e.g. inferEntities).
433};
434
435void init();

Callers 1

infer-entities.tsFile · 0.70

Calls 2

isLoggedInFunction · 0.85
getWebSocketFunction · 0.85

Tested by

no test coverage detected