mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-23 01:56:52 +03:00
adds new pingTimeout argument, fixes maxRequestBody
This commit is contained in:
parent
3c44f223f5
commit
767fe79254
|
@ -24,6 +24,7 @@ export interface Options {
|
||||||
dbOptions: DbOptions;
|
dbOptions: DbOptions;
|
||||||
maxRequestBody: string;
|
maxRequestBody: string;
|
||||||
logHTTPRequests?: boolean;
|
logHTTPRequests?: boolean;
|
||||||
|
pingTimeout: number;
|
||||||
logLevel: 0 | 1 | 3 | 2;
|
logLevel: 0 | 1 | 3 | 2;
|
||||||
wsEngine: string;
|
wsEngine: string;
|
||||||
}
|
}
|
||||||
|
@ -59,9 +60,10 @@ export default function getOptions(argv: { [arg: string]: any }): Options {
|
||||||
undefined,
|
undefined,
|
||||||
},
|
},
|
||||||
dbOptions: dbOptions,
|
dbOptions: dbOptions,
|
||||||
maxRequestBody: argv.passphrase || '16mb',
|
maxRequestBody: argv.maxRequestBody || '16mb',
|
||||||
logHTTPRequests: argv.logHTTPRequests,
|
logHTTPRequests: argv.logHTTPRequests,
|
||||||
logLevel: argv.logLevel || 3,
|
logLevel: argv.logLevel || 3,
|
||||||
|
pingTimeout: argv.pingTimeout || 20000,
|
||||||
wsEngine:
|
wsEngine:
|
||||||
argv.wsEngine || process.env.npm_package_remotedev_wsengine || 'ws',
|
argv.wsEngine || process.env.npm_package_remotedev_wsengine || 'ws',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user