MCPcopy Create free account
hub / github.com/TanStack/devtools / startConnectLoop

Method startConnectLoop

packages/event-bus-client/src/plugin.ts:86–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 }
85
86 private startConnectLoop() {
87 // if connected, trying to connect, or the internalId is already set, do nothing
88 if (this.#connectIntervalId !== null || this.#connected) return
89 this.debugLog(`Starting connect loop (every ${this.#connectEveryMs}ms)`)
90
91 this.#connectIntervalId = setInterval(
92 this.#retryConnection,
93 this.#connectEveryMs,
94 ) as unknown as number
95 }
96
97 private stopConnectLoop() {
98 this.#connecting = false

Callers 1

emitMethod · 0.95

Calls 1

debugLogMethod · 0.95

Tested by

no test coverage detected