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

Method close

tooling/scripts/sidebar-vim-smoke.mjs:123–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {
126 const deadline = Date.now() + 20000

Callers 15

store.tsFile · 0.45
deferredCloseFunction · 0.45
deferredCloseFunction · 0.45
stopMethod · 0.45
registerIpcFunction · 0.45
saveConfigFunction · 0.45
writeFileAtomicFunction · 0.45
startWatchingOverridesFunction · 0.45
startWatchingFunction · 0.45
stopAppConfigWatcherFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected