MCPcopy Create free account
hub / github.com/block/buzz / disconnectMockSocket

Function disconnectMockSocket

desktop/src/testing/e2eBridge.ts:7661–7669  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

7659}
7660
7661function disconnectMockSocket(id: number) {
7662 const socket = mockSockets.get(id);
7663 if (!socket) {
7664 return;
7665 }
7666
7667 mockSockets.delete(id);
7668 sendWsClose(socket.handler);
7669}
7670
7671export function maybeInstallE2eTauriMocks() {
7672 if (installed) {

Callers 1

Calls 3

sendWsCloseFunction · 0.85
getMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected