Coder Social home page Coder Social logo

Comments (4)

brocaar avatar brocaar commented on June 13, 2024 2

@KrestenHelstrup the same applies when using a REST client. My advice would be to use the gRPC interface. The REST interface works as a proxy to the gRPC interface, thus when making a REST call there is an internal translation to a gRPC call:

REST client -> REST API -> gRCP

In order to support the streaming gRPC methods, these endpoints are wrapped in WebSockets. These layers were added to support the web-interface, as by then gRPC was not supported in the browser. This is now supported (through gRPC-web) and probably this translation layer is going to be removed in the next version (probably it could still be provided as external component).

It should be fairly easy to generate C# gRPC stubs from the proto files (https://grpc.io/docs/languages/csharp/quickstart/) and then the streaming of data should work out-of-the box :-)

from chirpstack-api.

sagar-patel-sls avatar sagar-patel-sls commented on June 13, 2024

Hi @KrestenHelstrup

Stream API not work from any browser see attached screenshot for your reference
You need to create a web-socket connection for stream APIs.

image

from chirpstack-api.

KrestenHelstrup avatar KrestenHelstrup commented on June 13, 2024

Hi @sagar-patel-sls

Thanks for the fast reply.

I already saw that note in the docs. I'm interfacing the API from C# with a RestClient. It works fine for all other things and I hoped it would work for the streams also - but maybe not ?

from chirpstack-api.

KrestenHelstrup avatar KrestenHelstrup commented on June 13, 2024

Hi @brocaar

Thank you very much for the input.

from chirpstack-api.

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.