MCPcopy
hub / github.com/coder/mux / handleRequest

Function handleRequest

src/browser/utils/commands/sources.test.ts:1036–1039  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

1034
1035 const receivedWorkspaceIds: string[] = [];
1036 const handleRequest = (event: Event) => {
1037 const detail = (event as CustomEvent<{ workspaceId: string }>).detail;
1038 receivedWorkspaceIds.push(detail.workspaceId);
1039 };
1040
1041 window.addEventListener(CUSTOM_EVENTS.WORKSPACE_GENERATE_TITLE_REQUESTED, handleRequest);
1042

Callers

nothing calls this directly

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected