-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support grpc-web services #2
Comments
Added "help wanted" label b/c I don't personally use grpc services right now. |
I managed to make this work with grpc-web with some minor changes to The trick is to turn this piece of the generated code:
into that:
Since this library is using interfaces, there's no clean way I could imagine to make this work by just modifying @stephenh what are your thoughts on this? If you'd be ok with having some grpc service generation code (togglable between twirp and grpc) I'd try to contribute that once I have some time to spare. |
@hendrikhofstadt sorry for the really late follow up here; I hadn't / generally don't use grpc-web, so didn't have anything really useful to say. :-) That said, I had a client request grpc-web support, so I just released v1.28.0 that adds a In retrospect, your Would be great if you could check out the latest version and see if it works for your use case / setup. Would be great to get a 2nd set of eyes and users on it, I've admittedly only done a few trivial unary-only RPC calls so far. Thanks! |
Currently we only support twirp RPC services.
(This was hence been implemented for grpcjs and grpc-web.)
The text was updated successfully, but these errors were encountered: