MCPcopy Create free account
hub / github.com/agent-tower/core / onTask

Method onTask

packages/server/src/socket/socket-gateway.ts:142–144  ·  view source on GitHub ↗
({ taskId, projectId, status }: { taskId: string; projectId: string; status: string })

Source from the content-addressed store, hash-verified

140 const socket = this.nsp.sockets.get(socketId);
141 if (!socket) continue;
142 if (this.isSocketAuthCurrent(socket as AuthenticatedSocket)) {
143 socket.emit(event, payload);
144 } else {
145 socket.disconnect(true);
146 }
147 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected