ProxyConfiguration.to_ws_params

ProxyConfiguration.to_ws_params(ws_url)[source]

Extract proxy information for websocket.

Parameters:

ws_url (str) – Websocket URL.

Return type:

dict

Returns:

A dictionary with proxy configuration parameters in the format expected by websocket. The following keys can be present: http_proxy_host``and ``http_proxy_port, proxy_type, http_proxy_auth.