arthurkushman / php-wss

Web-socket server/client with multi-process and parse templates support on server and send/receive options on client
MIT License
210 stars 32 forks source link

Added proxy support to client #40

Closed mnashmi closed 4 years ago

mnashmi commented 4 years ago

Proxies are not a supported param by stream_socket_client() and is the http.proxy option is completely ignored. php.net/manual/en/context.socket.php

The change will first connect to a tcp proxy, issue the CONNECT command to the host, and then use the proxy to relay any data to the WebSocket.

arthurkushman commented 4 years ago

Thank u, can u make a new PR to develop branch instead of master, so we can work more separately on this feature?

arthurkushman commented 4 years ago

The request feature is good, we just need to set all things up to provide more compatible code with the code-base.

mnashmi commented 4 years ago

changes have been made

arthurkushman commented 4 years ago

Good work - thx