Set sensible gql ws-client retry attempt count

This commit is contained in:
schroda
2025-04-14 23:41:25 +02:00
parent a48cb0ce27
commit 76167ebb67

View File

@@ -225,7 +225,7 @@ export class GraphQLClient extends BaseClient<
this.wsClient = createClient({
url: () => this.getBaseUrl().replace(/http(|s)/g, 'ws'),
keepAlive: heartbeatInterval,
retryAttempts: Infinity,
retryAttempts: 10,
});
let lastHeartbeat: number = 0;