MCPcopy Index your code
hub / github.com/simstudioai/sim / sendResponse

Function sendResponse

apps/sim/lib/execution/isolated-vm.ts:629–640  ·  view source on GitHub ↗
(payload: Record<string, unknown>)

Source from the content-addressed store, hash-verified

627 const argsJson = msg.argsJson as string | undefined
628
629 const sendResponse = (payload: Record<string, unknown>) => {
630 try {
631 workerInfo.process.send({ type: 'brokerResponse', brokerId, ...payload })
632 } catch (err) {
633 logger.error('Failed to send broker response to worker', {
634 err,
635 brokerId,
636 brokerName,
637 workerId: workerInfo.id,
638 })
639 }
640 }
641
642 const logReject = (reason: string, extra?: Record<string, unknown>) => {
643 logger.warn('Sandbox broker call rejected', {

Callers 1

handleBrokerMessageFunction · 0.85

Calls 2

sendMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected