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

Method on

tooling/scripts/sidebar-vim-smoke.mjs:122–122  ·  view source on GitHub ↗
(method, l)

Source from the content-addressed store, hash-verified

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}
125async function connectPage(port) {

Callers 15

index.tsFile · 0.45
startMethod · 0.45
openExternalFileWindowFunction · 0.45
installNavigationGuardsFunction · 0.45
installZoomControlsFunction · 0.45
createWindowFunction · 0.45
onFunction · 0.45
registerIpcFunction · 0.45
openFloatingNoteWindowFunction · 0.45
ensureQuickCaptureWindowFunction · 0.45
index.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected