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

Method stop

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

Source from the content-addressed store, hash-verified

188 )
189 }
190 stop() {
191 this.debugLog('Stopping client event bus')
192 if (typeof window === 'undefined') {
193 return
194 }
195 this.#eventTarget.removeEventListener(
196 'tanstack-dispatch-event',
197 this.#dispatcher,
198 )
199 this.#eventTarget.removeEventListener(
200 'tanstack-connect',
201 this.#connectFunction,
202 )
203 this.#eventSource?.close()
204 this.#socket?.close()
205 this.#socket = null
206 this.#eventSource = null
207 this.#pendingServerEvents = []
208 }
209 private getGlobalTarget() {
210 if (typeof window !== 'undefined') {
211 return window

Callers 6

unmountMethod · 0.45
index.test.tsFile · 0.45
client.test.tsFile · 0.45
server.test.tsFile · 0.45
index.test.tsFile · 0.45
useAudioRecorderFunction · 0.45

Calls 1

debugLogMethod · 0.95

Tested by

no test coverage detected