Giter VIP home page Giter VIP logo

Comments (8)

tmc avatar tmc commented on May 12, 2024 2

@mwitkow any action on this?

from grpc-gateway.

hajsf avatar hajsf commented on May 12, 2024 2

But it might be useful if we can support server-sent events

Any update on this?

from grpc-gateway.

johanbrandhorst avatar johanbrandhorst commented on May 12, 2024 2

No update yet, haha. This issue is 7 years old 😓. Lets try to see what we can do in the other issue first?

from grpc-gateway.

yugui avatar yugui commented on May 12, 2024

Interesting.
But at this moment, compatibility to Swagger is more important for us. Let me check the compatibility before decision.

from grpc-gateway.

mwitkow avatar mwitkow commented on May 12, 2024

We're also very much interested in this. The biggest benefit of using event-stream is that parsing a stream of JS events in a browser doesn't buffer up the whole content of the stream.

I think implementing this could be relatively easy. Adding special case of Accept: text/event-stream into the generated code that will return a single EventSource event called data with the proto JSON as payload, followed by an empty data to force an event trigger.

We're actually interested in doing this ourselves. @yugui, would you accept PRs for this?

from grpc-gateway.

yugui avatar yugui commented on May 12, 2024

We're actually interested in doing this ourselves. @yugui, would you accept PRs for this?

Yes, I will.

from grpc-gateway.

tmc avatar tmc commented on May 12, 2024

@yugui for swagger-compat questions: OAI/OpenAPI-Specification#396

from grpc-gateway.

yugui avatar yugui commented on May 12, 2024

I have read the spec of the server-sent events.
IIUC, the spec defines something different from the current line-based streaming. So I decided not to simply replace the current way of streaming with server-sent events.

But it might be useful if we can support server-sent events as a part of pluggable marshaling mechanism.

from grpc-gateway.

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.