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

Method send

tooling/scripts/sidebar-vim-smoke.mjs:121–121  ·  view source on GitHub ↗
(method, params = {})

Source from the content-addressed store, hash-verified

119 })
120 }
121 send(method, params = {}) { const id = this.id++; return new Promise((res, rej) => { this.pending.set(id, { resolve: res, reject: rej }); this.ws.send(JSON.stringify({ id, method, params })) }) }
122 on(method, l) { const a = this.listeners.get(method) ?? []; a.push(l); this.listeners.set(method, a) }
123 close() { this.ws?.terminate?.(); this.ws?.close() }
124}

Callers 11

index.tsFile · 0.45
index.tsFile · 0.45
dispatchOpenNoteRequestFunction · 0.45
broadcastConfigChangeFunction · 0.45
broadcastOverridesChangeFunction · 0.45
installAppMenuFunction · 0.45
broadcastUpdateStateFunction · 0.45
focusAppAndOpenSettingsFunction · 0.45
evaluateFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected