File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -363,6 +363,16 @@ function sync_args_from_cmd(args) {
363
363
lt_config [ "run_settings" ] [ "network_http2" ] = false ;
364
364
}
365
365
366
+ if ( "network_ws" in args ) {
367
+ if ( args [ "network_ws" ] == "true" ) {
368
+ lt_config . run_settings . network_ws = true ;
369
+ } else {
370
+ lt_config . run_settings . network_ws = false ;
371
+ }
372
+ } else if ( lt_config [ "run_settings" ] [ "network_ws" ] && ! lt_config [ "run_settings" ] [ "network_ws" ] ) {
373
+ lt_config [ "run_settings" ] [ "network_ws" ] = false ;
374
+ }
375
+
366
376
if ( "headless" in args ) {
367
377
lt_config [ "run_settings" ] [ "headless" ] = args [ "headless" ] ;
368
378
} else if ( ! lt_config [ "run_settings" ] [ "headless" ] ) {
Original file line number Diff line number Diff line change @@ -217,6 +217,11 @@ const argv = require("yargs")
217
217
alias : "network_http2" ,
218
218
describe : "Capture Http2 Network logs" ,
219
219
type : "bool" ,
220
+ } )
221
+ . option ( "net_ws" , {
222
+ alias : "network_ws" ,
223
+ describe : "Bypass web socket calls for Network logs" ,
224
+ type : "bool" ,
220
225
} ) ;
221
226
} ,
222
227
function ( argv ) {
You can’t perform that action at this time.
0 commit comments