elm-protobuf
elm-protobuf copied to clipboard
support gRPC services
this could generate typed client code for grpc services
Indeed, it would be nice to generate gRPC stubs; I don't expect to be able to implement this in the short term, but it's definitely on my list. Feel free to send contributions if you wish
I think in order to support the real gRPC protocol, we would have to first implement protobuf binary serialization (not just JSON) over HTTP2, which is a considerable amount of work. But I'm leaving this open in case anyone has any ideas on how to go about that!
https://spatialos.improbable.io/games/grpc-web-moving-past-restjson-towards-type-safe-web-apis
Would it be an option to generate the proto/grcp library in javascript using existing tools and then call it from elm ?
Just a note: grpc is supposed to be serialization agnostic, with a preference for protobufs. Also since proto3, json is an official serialization format supported by the proto spec.
Now we have grpc-web, will this help?