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

Method send

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

Source from the content-addressed store, hash-verified

332 }
333
334 send(method, params = {}) {
335 const id = this.nextId
336 this.nextId += 1
337 return new Promise((resolvePromise, rejectPromise) => {
338 this.pending.set(id, { resolve: resolvePromise, reject: rejectPromise })
339 this.socket.send(JSON.stringify({ id, method, params }))
340 })
341 }
342
343 on(method, listener) {
344 const listeners = this.listeners.get(method) ?? []

Callers 2

evaluateFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected