MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / cmd

Method cmd

e2e/desktop-packaged/linux-vm/repro.mjs:98–103  ·  view source on GitHub ↗
(method, params = {})

Source from the content-addressed store, hash-verified

96 });
97 }
98 cmd(method, params = {}) {
99 const id = this.#id++;
100 const p = new Promise((resolve, reject) => this.#pending.set(id, { resolve, reject }));
101 this.#ws.send(JSON.stringify({ id, method, params }));
102 return p;
103 }
104 async eval(expression) {
105 const r = await this.cmd("Runtime.evaluate", {
106 expression,

Callers 2

evalMethod · 0.95
launchAppFunction · 0.80

Calls 2

setMethod · 0.80
sendMethod · 0.65

Tested by

no test coverage detected