amphp / websocket-client

Async WebSocket client for PHP based on Amp.
https://amphp.org/websocket-client
MIT License
147 stars 17 forks source link

Connect through proxy server #24

Closed butschster closed 4 years ago

butschster commented 4 years ago

Hi!

How can I create connection with websocket server through proxy server?

kelunik commented 4 years ago

You can pass a custom HttpClient to Rfc6455Connector, so you can leverage the full proxy support that's available in HttpClient: socks4, socks5, and CONNECT tunnels.