ButterCam / Mediator

Cross-platform GUI gRPC debugging proxy
Apache License 2.0
142 stars 8 forks source link

Does it work with Dart client ? #7

Closed mbilbiesi closed 1 year ago

mbilbiesi commented 1 year ago

Hello,

I have question if I can setup this tool using Dart https://github.com/grpc/grpc-dart ?

Regards,

devkanro commented 1 year ago

I think it should be available, just need to configure the proxy's link

mbilbiesi commented 1 year ago

I am wondering on how to set the proxy's link with grpc-dart; I could not find any documentation for this.

My client initialisation looks like

  void initClient() {
    channel = ClientChannel(
      getBaseUrl(),
      port: 443,
      options: ChannelOptions(
        // credentials: const ChannelCredentials.insecure(),
        codecRegistry: CodecRegistry(
          codecs: const [GzipCodec(), IdentityCodec()],
        ),
      ),
    );
    stub = NativeGatewayServiceClient(channel);
  }
devkanro commented 1 year ago

Ohh, it seems grpc-dart don't support proxy yet

grpc/grpc-dart#33