We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a016f3 commit 0f463c9Copy full SHA for 0f463c9
2 files changed
.changeset/plain-eagles-serve.md
@@ -0,0 +1,5 @@
1
+---
2
+'@tanstack/devtools-event-client': patch
3
4
+
5
+increase minimum reconnection time and allow it to be configurable on event bus client
packages/event-bus-client/src/plugin.ts
@@ -64,10 +64,11 @@ export class EventClient<
64
pluginId,
65
debug = false,
66
enabled = true,
67
+ reconnectEveryMs = 1000,
68
}: {
69
pluginId: TPluginId
70
debug?: boolean
-
71
+ reconnectEveryMs?: number
72
enabled?: boolean
73
}) {
74
this.#pluginId = pluginId
@@ -78,7 +79,7 @@ export class EventClient<
78
79
this.#queuedEvents = []
80
this.#connected = false
81
this.#connectIntervalId = null
- this.#connectEveryMs = 500
82
+ this.#connectEveryMs = reconnectEveryMs
83
}
84
85
private startConnectLoop() {
0 commit comments