Coder Social home page Coder Social logo

Node-based proxy about grpc-web HOT 10 OPEN

grpc avatar grpc commented on August 15, 2024 4
Node-based proxy

from grpc-web.

Comments (10)

tiero avatar tiero commented on August 15, 2024 1

@petermetz I tested for my use case where I use grpc-web-text (ie. messages are encoded as base64) and is not supported either, guess is same reason only works for unary calls.

from grpc-web.

paralin avatar paralin commented on August 15, 2024

Done here: http://github.com/paralin/grpc-bus

Any comments?

from grpc-web.

wenbozhu avatar wenbozhu commented on August 15, 2024

Cool. Any doc on the supported transport/protocols?

from grpc-web.

paralin avatar paralin commented on August 15, 2024

@wenbozhu supports literally anything. You give it a function for send(message) {} and it expects that message to end up at handleMessage(message) on the server. Also, the thing passed to send() is a ProtoBuf message so it supports binary serialization.

from grpc-web.

wenbozhu avatar wenbozhu commented on August 15, 2024

Thanks for the update!

Are you interested in implementing the grpc-web spec in the Node proxy?

https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-WEB.md

There is already a Go proxy from Improbable. We are happy to review the Node proxy implementation and include the Node proxy in grpc-web interoperability test suite.

from grpc-web.

lewish avatar lewish commented on August 15, 2024

I've taken a stab at this, because we needed it ourselves for something: https://github.com/dataform-co/dataform/tree/master/tools/grpc-web-proxy

It seems to be working well for unary calls, I haven't had a chance to test it for streaming yet! Would be happy to discuss moving this somewhere official, but not sure I have the time to do that myself.

from grpc-web.

stanley-cheung avatar stanley-cheung commented on August 15, 2024

@lewish This looks promising! Let us check this out and we can discuss where it's more appropriate to host this later. Thanks!

from grpc-web.

petermetz avatar petermetz commented on August 15, 2024

@lewish I'm late for the party, your link goes to 404. Did you ever end up finishing that implementation so that it supports streaming as well? :-)

from grpc-web.

tiero avatar tiero commented on August 15, 2024

@lewish I'm late for the party, your link goes to 404. Did you ever end up finishing that implementation so that it supports streaming as well? :-)

maybe this? https://github.com/dataform-co/dataform/tree/master/grpc-web-proxy

from grpc-web.

petermetz avatar petermetz commented on August 15, 2024

@tiero Thank you! Unfortunately it says in the readme on that link that This has only been tested with unary gRPC calls. :-(

from grpc-web.

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.