tiziano88 / elm-protobuf

protobuf plugin for elm
https://package.elm-lang.org/packages/tiziano88/elm-protobuf/latest/
MIT License
94 stars 28 forks source link

support gRPC services #2

Open tmc opened 8 years ago

tmc commented 8 years ago

this could generate typed client code for grpc services

tiziano88 commented 8 years ago

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

tiziano88 commented 8 years ago

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!

krestenkrab commented 7 years ago

https://spatialos.improbable.io/games/grpc-web-moving-past-restjson-towards-type-safe-web-apis

azr commented 7 years ago

Would it be an option to generate the proto/grcp library in javascript using existing tools and then call it from elm ?

awalterschulze commented 7 years ago

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.

qwfy commented 5 years ago

Now we have grpc-web, will this help?