MCPcopy
hub / github.com/vercel/hyper / emit

Method emit

app/rpc.ts:40–46  ·  view source on GitHub ↗
(ch: string, data: any = {})

Source from the content-addressed store, hash-verified

38 }
39
40 emit(ch: string, data: any = {}): any {
41 // This check is needed because data-batching can cause extra data to be
42 // emitted after the window has already closed
43 if (!this.win.isDestroyed()) {
44 this.wc.send(this.id, {ch, data});
45 }
46 }
47
48 destroy() {
49 this.removeAllListeners();

Callers 15

index.tsFile · 0.45
commands.tsFile · 0.45
checkForUpdatesMethod · 0.45
emitErrorMethod · 0.45
fetchNotificationsFunction · 0.45
flushMethod · 0.45
initMethod · 0.45
destroyMethod · 0.45
ipcListenerMethod · 0.45
onupdateFunction · 0.45
newWindowFunction · 0.45
handleDropFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected