rpc icon indicating copy to clipboard operation
rpc copied to clipboard

Support Protocol Buffers serialisation.

Open aabluedragon opened this issue 9 years ago • 4 comments

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

aabluedragon avatar Aug 24 '15 11:08 aabluedragon

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.

wibling avatar Sep 17 '15 06:09 wibling

Has this been revisited? I'd like to consider using Dart for client-side work, but my clients must support protobuf grpc gen.

binary132 avatar Mar 26 '18 13:03 binary132

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

kevin-sakemaer avatar Mar 26 '18 13:03 kevin-sakemaer

I see. Thanks for clarifying!

binary132 avatar Mar 26 '18 13:03 binary132