From 6e54a9a80c99df607a3a5a7f46f1b43d352a8e74 Mon Sep 17 00:00:00 2001 From: Shiranuit Date: Tue, 28 Feb 2023 14:38:33 +0100 Subject: [PATCH 1/2] disable websocket heartbeat from the SDK when using the debug-proxy --- src/commands/app/debug-proxy.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/app/debug-proxy.ts b/src/commands/app/debug-proxy.ts index 24316d84..666f0254 100644 --- a/src/commands/app/debug-proxy.ts +++ b/src/commands/app/debug-proxy.ts @@ -57,6 +57,9 @@ export default class DebugProxy extends Kommand { }; async runSafe() { + // @ts-ignore Disable ping pong since when debugging Kuzzle might not be responding + clearInterval(this.sdk.sdk.protocol.pingIntervalId); + const nodeVersionResponse = (await this.sdk.query({ controller: "debug", action: "nodeVersion", From 011a1a95a0f13e24da444d3a4462431b6f75252d Mon Sep 17 00:00:00 2001 From: Shiranuit Date: Tue, 28 Feb 2023 14:46:26 +0100 Subject: [PATCH 2/2] allow to disable some ts rules --- .eslintrc.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.json b/.eslintrc.json index 7b35263d..0ecc4536 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,6 +12,7 @@ "plugin:@typescript-eslint/recommended" ], "rules": { + "@typescript-eslint/ban-ts-comment": 0, "@typescript-eslint/explicit-module-boundary-types": 0, "@typescript-eslint/no-explicit-any": 0, "@typescript-eslint/no-shadow": "error",