MCPcopy
hub / github.com/wavetermdev/waveterm / mockWshRpcCall

Function mockWshRpcCall

frontend/preview/mock/mockwaveenv.ts:332–339  ·  view source on GitHub ↗
(_client, command, data, _opts)

Source from the content-addressed store, hash-verified

330 const rpc = new RpcApiType();
331 rpc.setMockRpcClient({
332 mockWshRpcCall(_client, command, data, _opts) {
333 const fn = callDispatchMap.get(command);
334 if (fn) {
335 return fn(_client, data, _opts);
336 }
337 console.log("[mock rpc call]", command, data);
338 return Promise.resolve(null);
339 },
340 async *mockWshRpcStream(_client, command, data, _opts) {
341 const streamFn = streamDispatchMap.get(command);
342 if (streamFn) {

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected