Comments (4)
I have squashed PR #20 and made some additional changes that were committed in 52f7fd4:
- Code gen and core library moved to com.thesamet.scalapb.grpcweb
- The generated code is inside an object name suffixed by
GrpcWeb
, i.e.MyServiceGrpcWeb
: - The methods that take metadata and those that don't are generated inside a single trait. I preferred this over default parameters due to the having a default value for a metadata between two required args (request and responseObserver) is odd.
- the new generator needs to run in addition to the existing generator (not to invoke it) for better modularity. If all generators did that, they couldn't be combined to a single run since they all would generate Scala code for message types.
Please check out the latest snapshot and provide feedback if we can close this issue.
Snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/thesamet/scalapb/grpcweb/
Example updated: https://github.com/scalapb/scalapb-grpcweb/tree/master/example
from scalapb-grpcweb.
From my tests, it looks good to me, I have submitted a small PR to update minor details
We'll try integrating this internally on a project and get back to you in the next week.
Thanks!
from scalapb-grpcweb.
I believe this can be closed.
from scalapb-grpcweb.
I confirm we have been using this successfully for months now.
Thanks!
from scalapb-grpcweb.
Related Issues (7)
- Support for interceptors? HOT 3
- Question about server-side grpc-web support
- Failure(io.grpc.StatusRuntimeException: UNKNOWN: Http response at 400 or 500 level)) HOT 4
- Adding a header seems to remove all other headers HOT 6
- Compiling the example client fails HOT 4
- [Feature Request] Trigger gRPC Web Call Without Node (java script) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalapb-grpcweb.