@rool-dev/sdk 0.3.10-dev.65d6b10 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/subscription.js +1 -1
- package/package.json +1 -1
package/dist/subscription.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createClient } from 'graphql-sse';
|
|
|
6
6
|
const INITIAL_RECONNECT_DELAY = 1000;
|
|
7
7
|
const MAX_RECONNECT_DELAY = 30000;
|
|
8
8
|
const RECONNECT_MULTIPLIER = 2;
|
|
9
|
-
const HEARTBEAT_TIMEOUT =
|
|
9
|
+
const HEARTBEAT_TIMEOUT = 15_000; // Server sends heartbeats every 10s; reconnect if none arrives within 15s
|
|
10
10
|
export class ClientSubscriptionManager {
|
|
11
11
|
config;
|
|
12
12
|
client = null;
|