mqtt_client icon indicating copy to clipboard operation
mqtt_client copied to clipboard

How to add proxy to see content in proxy tools like Charles/Proxyman?

Open opsenes opened this issue 10 months ago • 1 comments

Is there any option to provide a proxy for MqttServerClient?

In HttpClient we provide proxy as HttpOverrides.global.

  @override
  HttpClient createHttpClient(SecurityContext? context) {
    return super.createHttpClient(context)
      ..findProxy = (uri) {
        return "PROXY $customProxy;";
      }
      ..badCertificateCallback = (cert, host, port) => true;
  }

opsenes avatar Apr 03 '24 14:04 opsenes

No not as such. MQTT is not a HTTP based protocol, the client opens a socket and transmits/receives binary data to/from the broker as per the MQTT protocol spec.

There are tools such as this which are intercepting proxies if tis is what you mean.

shamblett avatar Apr 03 '24 15:04 shamblett