amphp / websocket-client

Async WebSocket client for PHP based on Amp.

Home Page:https://amphp.org/websocket-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connect through proxy server

butschster opened this issue · comments

Hi!

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

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.