MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / send

Method send

tooling/scripts/perf-web-runtime.mjs:363–370  ·  view source on GitHub ↗
(method, params = {})

Source from the content-addressed store, hash-verified

361 }
362
363 send(method, params = {}) {
364 const id = this.nextId
365 this.nextId += 1
366 return new Promise((resolvePromise, rejectPromise) => {
367 this.pending.set(id, { resolve: resolvePromise, reject: rejectPromise })
368 this.socket.send(JSON.stringify({ id, method, params }))
369 })
370 }
371
372 on(method, listener) {
373 const listeners = this.listeners.get(method) ?? []

Callers 2

evaluateFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected