MCPcopy Create free account
hub / github.com/modelcontextprotocol/inspector / upsertReceiverTask

Function upsertReceiverTask

client/src/lib/hooks/useConnection.ts:868–875  ·  view source on GitHub ↗
(task: Task)

Source from the content-addressed store, hash-verified

866 };
867
868 const upsertReceiverTask = async (task: Task) => {
869 // Update task record and emit status notification.
870 const record = receiverTasksRef.current.get(task.taskId);
871 if (record) {
872 receiverTasksRef.current.set(task.taskId, { ...record, task });
873 }
874 await emitTaskStatus(task);
875 };
876
877 const createReceiverTask = (opts: {
878 ttl?: number;

Callers 1

connectFunction · 0.85

Calls 1

emitTaskStatusFunction · 0.85

Tested by

no test coverage detected