XChange
XChange copied to clipboard
closes knowm/XChange#3647 Added support for tinyproxy acting as reverse proxy.
This will support a reverse proxy setup such as tinyproxy
when connecting to any of the supported exchanges
used
by a spring java app like this
use case
is going thr a lightweight firewall like tinyproxy
dumb question: couldn't you just run nginx or something to do that?
Or is it that the code in XChange for streaming somehow needs to be modified? Why exactly?
HI Tim yes specifically for streaming and the additional functionality is to bridge the gap in setting up web socket session when a proxy is used in between Changes are
- invoke applyStreamingSpefication on connect in class XXXStreamingExchange
- set the proxy host and port in method applyStreamingSpec - StreamingExchange
- Add a proxy friendly handler in nettStreamingService if proxys are given.
- and importantly WebSocketClientHandler to manage the handshake when a proxy is used I hope this is considered for inclusion as there shouldn't be an impact on the main flow but will be useful for proxy based implementation and tinyproxy is used as a lightweight firewall to block or white listed web socket url. particularly important in our industry.