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

Function sendIpcRequest

apps/sim/lib/execution/isolated-vm-worker.cjs:35–43  ·  view source on GitHub ↗

* Sends an IPC request and reports only actual delivery failures. * Node queues messages under backpressure, so the boolean return value is not * a failure signal.

(message, onError)

Source from the content-addressed store, hash-verified

33 * a failure signal.
34 */
35function sendIpcRequest(message, onError) {
36 try {
37 process.send(message, (err) => {
38 if (err) onError(err)
39 })
40 } catch (error) {
41 onError(error instanceof Error ? error : new Error(String(error)))
42 }
43}
44
45function getBundleSource(bundleName) {
46 const cached = bundleSourceCache.get(bundleName)

Callers 2

executeCodeFunction · 0.85
executeTaskFunction · 0.85

Calls 2

sendMethod · 0.80
onErrorFunction · 0.50

Tested by

no test coverage detected