MCPcopy
hub / github.com/vitejs/vite / on

Method on

packages/vite/src/node/server/hmr.ts:135–135  ·  view source on GitHub ↗

* Handle custom event emitted by `import.meta.hot.send`

(event: T, listener: HotChannelListener<T>)

Source from the content-addressed store, hash-verified

133 * Handle custom event emitted by `import.meta.hot.send`
134 */
135 on?<T extends string>(event: T, listener: HotChannelListener<T>): void
136 on?(event: 'connection', listener: () => void): void
137 /**
138 * Unregister event listener

Callers 15

tryBindServerFunction · 0.65
setClientErrorHandlerFunction · 0.65
setupSIGTERMListenerFunction · 0.65
bindCLIShortcutsFunction · 0.65
buildEnvironmentFunction · 0.65
connectFunction · 0.65
createWorkerTransportFunction · 0.65
worker.invoke.mjsFile · 0.65
connectFunction · 0.65
circular-index.jsFile · 0.65

Calls

no outgoing calls

Tested by 3

createWorkerTransportFunction · 0.52
connectFunction · 0.52
configureServerFunction · 0.52