Skip to content

Commit

Permalink
Merge pull request #184 from kuzzleio/enhancement/disable-ping-while-…
Browse files Browse the repository at this point in the history
…debugging

Disable websocket heartbeat from the SDK when using the debug-proxy
  • Loading branch information
Shiranuit authored Feb 28, 2023
2 parents cc8f923 + 011a1a9 commit 9ea4a3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions src/commands/app/debug-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9ea4a3b

Please sign in to comment.