MQTT through SOCKS5 Proxy

Hello!

I am wondering a way to route the MQTT traffic through SOCKS5 proxy. Where can I set to configure, or where should I modify the Python code?

Thanks.