rpc
rpc copied to clipboard
Support Protocol Buffers serialisation.
It would be useful if we could have Protobuf support in dart-rpc, or even any serialisation methods other than JSON, maybe specify which one to use (like a content-type) using the Accept
request header.
Even though JSON is most broadly used, for many situations, others are required as well.
See related StackOverflow question
Supporting protobuf and in general having a way to plugin serialization is something we have discussed. It would be very nice to have, but it is not planned for the near term.
Has this been revisited? I'd like to consider using Dart for client-side work, but my clients must support protobuf grpc gen.
You can already use generated grpc models with dart client with whatever server language. You can use the fromJson ctor of the generated model. Look at the grpc-dart repos and more precisely to this like on your model.
I think this issue cover your need
I see. Thanks for clarifying!