@@ -50,22 +50,19 @@ class ClientConfig:
5050 keep_alive = _ClientConfigDescriptor ("_keep_alive" )
5151 """Gets and Sets Keep Alive value."""
5252 proxy = _ClientConfigDescriptor ("_proxy" )
53- """Gets and Sets the proxy used for communicating to the driver/server."""
53+ """Gets and Sets the proxy used for communicating with the driver/server."""
5454 ignore_certificates = _ClientConfigDescriptor ("_ignore_certificates" )
5555 """Gets and Sets the ignore certificate check value."""
5656 init_args_for_pool_manager = _ClientConfigDescriptor ("_init_args_for_pool_manager" )
5757 """Gets and Sets the ignore certificate check."""
5858 timeout = _ClientConfigDescriptor ("_timeout" )
59- """Gets and Sets the timeout (in seconds) used for communicating to the
60- driver/server."""
59+ """Gets and Sets the timeout (in seconds) used for communicating with the driver/server."""
6160 ca_certs = _ClientConfigDescriptor ("_ca_certs" )
6261 """Gets and Sets the path to bundle of CA certificates."""
6362 username = _ClientConfigDescriptor ("_username" )
64- """Gets and Sets the username used for basic authentication to the
65- remote."""
63+ """Gets and Sets the username used for basic authentication to the remote."""
6664 password = _ClientConfigDescriptor ("_password" )
67- """Gets and Sets the password used for basic authentication to the
68- remote."""
65+ """Gets and Sets the password used for basic authentication to the remote."""
6966 auth_type = _ClientConfigDescriptor ("_auth_type" )
7067 """Gets and Sets the type of authentication to the remote server."""
7168 token = _ClientConfigDescriptor ("_token" )
@@ -74,6 +71,10 @@ class ClientConfig:
7471 """Gets and Sets user agent to be added to the request headers."""
7572 extra_headers = _ClientConfigDescriptor ("_extra_headers" )
7673 """Gets and Sets extra headers to be added to the request."""
74+ websocket_timeout = _ClientConfigDescriptor ("_websocket_timeout" )
75+ """Gets and Sets the WebSocket response wait timeout (in seconds) used for communicating with the browser."""
76+ websocket_interval = _ClientConfigDescriptor ("_websocket_interval" )
77+ """Gets and Sets the WebSocket response wait interval (in seconds) used for communicating with the browser."""
7778
7879 def __init__ (
7980 self ,
@@ -90,6 +91,8 @@ def __init__(
9091 token : Optional [str ] = None ,
9192 user_agent : Optional [str ] = None ,
9293 extra_headers : Optional [dict ] = None ,
94+ websocket_timeout : Optional [float ] = 30.0 ,
95+ websocket_interval : Optional [float ] = 0.1 ,
9396 ) -> None :
9497 self .remote_server_addr = remote_server_addr
9598 self .keep_alive = keep_alive
@@ -103,6 +106,8 @@ def __init__(
103106 self .token = token
104107 self .user_agent = user_agent
105108 self .extra_headers = extra_headers
109+ self .websocket_timeout = websocket_timeout
110+ self .websocket_interval = websocket_interval
106111
107112 self .ca_certs = (
108113 (os .getenv ("REQUESTS_CA_BUNDLE" ) if "REQUESTS_CA_BUNDLE" in os .environ else certifi .where ())
0 commit comments