njouanin / hbmqtt

MQTT client/broker using Python asynchronous I/O
MIT License
801 stars 190 forks source link

Does HBMQTT support http proxy to establish wss connection? #182

Open bh4r4th opened 5 years ago

bh4r4th commented 5 years ago

Just curious! Wanted to know whether HBMQTT client supports http proxy. Like if I have to run a hbmqtt client behind a restrictive office network setup, does it work? Assuming I have got all the server and firewall permissions enabled for my wss host.

I saw that HBMQTT using websockets under the hood and Websockets client have a limitation that they don't support proxy. Link: https://websockets.readthedocs.io/en/stable/limitations.html?highlight=proxy

bh4r4th commented 5 years ago

I partially achieved http-proxy using a https://github.com/eclipse/paho.mqtt.python client. Still working on this! But worth trying.

Cons: Not an async client like hbmqtt but wrapped with a async class wrapper to easy swap with hbmqtt in future if this future is implemented.