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) {
363363 lt_config [ "run_settings" ] [ "network_http2" ] = false ;
364364 }
365365
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+
366376 if ( "headless" in args ) {
367377 lt_config [ "run_settings" ] [ "headless" ] = args [ "headless" ] ;
368378 } 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")
217217 alias : "network_http2" ,
218218 describe : "Capture Http2 Network logs" ,
219219 type : "bool" ,
220+ } )
221+ . option ( "net_ws" , {
222+ alias : "network_ws" ,
223+ describe : "Bypass web socket calls for Network logs" ,
224+ type : "bool" ,
220225 } ) ;
221226 } ,
222227 function ( argv ) {
You can’t perform that action at this time.
0 commit comments