Giter VIP home page Giter VIP logo

Comments (4)

thesamet avatar thesamet commented on August 10, 2024 1

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.

AlexITC avatar AlexITC commented on August 10, 2024

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.

thesamet avatar thesamet commented on August 10, 2024

I believe this can be closed.

from scalapb-grpcweb.

AlexITC avatar AlexITC commented on August 10, 2024

I confirm we have been using this successfully for months now.

Thanks!

from scalapb-grpcweb.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.