Ensure graphql ws client is terminated when recreating it

This commit is contained in:
schroda
2025-11-06 02:39:02 +01:00
parent 932499f211
commit 71b70ab0da

View File

@@ -331,6 +331,7 @@ export class GraphQLClient extends BaseClient<
const isHeartbeatMissing = Date.now() - lastHeartbeat > checkHeartbeatInterval * 1.1;
if (isHeartbeatMissing) {
this.wsClient.dispose();
this.wsClient.terminate();
this.createWSClient(false);
this.client.setLink(this.createLink());