Merge pull request #1 from jardicc/ping-timeout

Ping timeout
This commit is contained in:
Jaroslav Bereza 2024-03-04 20:59:35 +01:00 committed by GitHub
commit 2e61f11de2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,12 @@
# Change Log
## 4.1.0
### Minor changes
- adds CLI argument to change ping timeout `--pingTimeout=20000` to make debugging easier
- fixes `--maxRequestBody` argument
## 4.0.0
### Major Changes

View File

@ -99,6 +99,7 @@ To use WSS, set `protocol` argument to `https` and provide `key`, `cert` and `pa
| `--logLevel` | the socket server log level - 0=none, 1=error, 2=warn, 3=info | 3 |
| `--wsEngine` | the socket server web socket engine - ws or uws (sc-uws) | ws |
| `--open` | open Redux DevTools as a standalone application or as web app. See [Open Redux DevTools](#open-redux-devtools) for details. | false |
| `--pingTimeout` | if debugged app is not responding for 20 seconds (because it paused on breakpoint) the Redux DevTools will disconnect. This can extend it to e.g. 8 hours `28000000`ms | 20000 |
### Inject to React Native local server

View File

@ -1,6 +1,6 @@
{
"name": "@redux-devtools/cli",
"version": "4.0.0",
"version": "4.1.0",
"description": "CLI for remote debugging with Redux DevTools.",
"homepage": "https://github.com/reduxjs/redux-devtools/tree/master/packages/redux-devtools-cli",
"bugs": {

View File

@ -24,6 +24,7 @@ export interface Options {
dbOptions: DbOptions;
maxRequestBody: string;
logHTTPRequests?: boolean;
pingTimeout: number;
logLevel: 0 | 1 | 3 | 2;
wsEngine: string;
}
@ -59,9 +60,10 @@ export default function getOptions(argv: { [arg: string]: any }): Options {
undefined,
},
dbOptions: dbOptions,
maxRequestBody: argv.passphrase || '16mb',
maxRequestBody: argv.maxRequestBody || '16mb',
logHTTPRequests: argv.logHTTPRequests,
logLevel: argv.logLevel || 3,
pingTimeout: argv.pingTimeout || 20000,
wsEngine:
argv.wsEngine || process.env.npm_package_remotedev_wsengine || 'ws',
};