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 1feb327 commit 8bd19faCopy full SHA for 8bd19fa
packages/cubejs-cubestore-driver/src/WebSocketConnection.ts
@@ -71,7 +71,9 @@ export class WebSocketConnection {
71
}
72
});
73
webSocket.on('pong', () => {
74
- this.currentConnectionTry = 0;
+ if (webSocket === this.webSocket) {
75
+ this.currentConnectionTry = 0;
76
+ }
77
webSocket.lastHeartBeat = new Date();
78
79
webSocket.on('close', () => {
@@ -155,7 +157,7 @@ export class WebSocketConnection {
155
157
156
158
159
private retryWaitTime() {
- return 1000 * this.currentConnectionTry;
160
+ return 1000 * (this.currentConnectionTry + 1);
161
162
163
private async sendMessage(messageId: number, buffer: Uint8Array): Promise<any> {
0 commit comments