You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
<
8000
link rel="modulepreload" href="https://github.githubassets.com/assets/4pu-6f4fbaa82ff05f94.js" crossorigin="anonymous" />
Looks like supporting a proxy is not that difficult.
You have to redirect the TCP socket, send a request to the proxy and parse its response. After this additional step everything else is the same as before.
Activity
[-]How tu use WebSockex through a http proxy[/-][+]How to use WebSockex through a http proxy[/+]tht commentedon Sep 2, 2017
Looks like supporting a proxy is not that difficult.
You have to redirect the TCP socket, send a request to the proxy and parse its response. After this additional step everything else is the same as before.
I hacked it into your library, the result is here: https://github.com/tht/websockex
It seems to work nicely but it's far from being ready for a pull request. SSL is not supported when using a proxy and there are no tests.
Azolo commentedon Sep 14, 2017
Awesome, thanks for the heads up and working code sample.
I'll look into getting this integrated or if nothing else at least a way to make a request through an existing proxy connection.