MCPcopy Create free account
hub / github.com/EsperoTech/yaade / cleanup

Function cleanup

client/src/utils/websocket.ts:37–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 };
36
37 const cleanup = () => {
38 clearTimeout(timeoutId);
39 ws.removeEventListener('message', messageHandler);
40 };
41 ws.addEventListener('message', messageHandler);
42
43 ws.send(JSON.stringify(msg));

Callers 4

sendMessageToWebsocketFunction · 0.85
messageHandlerFunction · 0.85
bootJasmineFunction · 0.85
jasmine.jsFile · 0.85

Calls 1

clearTimeoutFunction · 0.50

Tested by

no test coverage detected