MCPcopy Index your code
hub / github.com/TanStack/devtools / start

Method start

packages/event-bus/src/client/client.ts:172–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 }
171 }
172 start() {
173 this.debugLog('Starting client event bus')
174 if (typeof window === 'undefined') {
175 return
176 }
177 if (this.#connectToServerBus) {
178 this.connect()
179 }
180 this.#eventTarget = window
181 this.#eventTarget.addEventListener(
182 'tanstack-dispatch-event',
183 this.#dispatcher,
184 )
185 this.#eventTarget.addEventListener(
186 'tanstack-connect',
187 this.#connectFunction,
188 )
189 }
190 stop() {
191 this.debugLog('Stopping client event bus')
192 if (typeof window === 'undefined') {

Callers 6

mountDevtoolsFunction · 0.95
index.test.tsFile · 0.45
client.test.tsFile · 0.45
server.test.tsFile · 0.45
index.test.tsFile · 0.45
useAudioRecorderFunction · 0.45

Calls 2

debugLogMethod · 0.95
connectMethod · 0.95

Tested by

no test coverage detected