uperl / AnyEvent-WebSocket-Client

WebSocket client for AnyEvent
9 stars 10 forks source link

Add env_proxy attribute #37

Closed debug-ito closed 6 years ago

debug-ito commented 6 years ago

This p-r adds env_proxy attribute to Client. If set to true, it reads environment variables for proxy settings. If it successfully reads valid proxy settings, it uses that proxy to connect to WebSocket end-points.

To support proxy connection, it now depends on AnyEvent::Connector module.

The proxy connection is tested in xt/proxy.t, in which it actually connects to echo.websocket.org. The test is run only if certain environment variables are set, so travis skips this test.

This p-r closes #36, hopefully.

I'm not so familiar with Dist::Zilla, so you might need to revise dist.ini and other files.