housleyjk / ws-rs

Lightweight, event-driven WebSockets for Rust.
MIT License
1.46k stars 221 forks source link

Http proxy supporting #208

Open zjhmale opened 6 years ago

zjhmale commented 6 years ago

Like WebSocket client in python, we can set up a pair of http_proxy host and port for each WebSocket connection as shown below

ws = websocket.WebSocketApp("wss://real.okex.com:10440/websocket/okexapi",
                            on_message=on_message,
                            on_error=on_error,
                            on_close=on_close,
                            on_open=on_open)
ws.run_forever(sslopt=sslopt_ca_certs,
               http_proxy_host=proxy_host,
               http_proxy_port=proxy_port)

so how can I achieve the same thing with this awesome library?

paulvt commented 5 years ago

Not to forget, there is also proxy authentication.

tbrand commented 5 years ago

I really need this! Any updates?