Giter VIP home page Giter VIP logo

Comments (4)

johanbrandhorst avatar johanbrandhorst commented on May 31, 2024 1

Hi @mame82! Thanks for raising this issue. I realised after our exchange that this might be necessary. I think it might be achievable with a call option but I'll have to do some testing. I agree with your assessment that using the websocket transport for server side streaming should work just fine.

If you want to try and make a contribution yourself, it should be possible to store some flag in the properties that can be set by the call option before the call is first created. Since the websocket transport should work with any type of request (even unary) I don't see a problem with it being available like that. Obviously the option should only be to turn it on for all requests, no way to disable it. Something like WithForceWebsocketTransport() might work.

from protobuf.

johanbrandhorst avatar johanbrandhorst commented on May 31, 2024 1

Great work, I will take a look tonight if I have some time!

from protobuf.

mame82 avatar mame82 commented on May 31, 2024

I filed a PR #36

Unfortunately a test for exit-code is failing.

Anyway, it is a minor change, using a client-wide DialOption ( as you suggested turning it on for all requests, including unary).

I'd be happy if you could incorporate the changes of the PR or a similar change.

Please understand, that I'm currently missing the time to clean the PR to succeed the test. It is hard to do changes to your code in my test setup (IDE is running with different GOPATH and on a different host than my actual compiled project, thus I have to overwrite your code on two hosts for testing before putting it back to a forked github repo to fix the PR)

Failing test is git diff --exit-code but I'm not able to spot the error

from protobuf.

mame82 avatar mame82 commented on May 31, 2024

Wow, your change works pretty well. Choosing WS usage per default or only per gRPC call... Like this granularity. Great work and fast adoption. Thank you, keep on your great work!

from protobuf.

Related Issues (20)

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.