Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for gRPC streaming in Auraescript #351

Open
JeroenSoeters opened this issue Feb 4, 2023 · 2 comments
Open

Support for gRPC streaming in Auraescript #351

JeroenSoeters opened this issue Feb 4, 2023 · 2 comments

Comments

@JeroenSoeters
Copy link
Contributor

Right now, we don't support streaming in the TypeScript API, it would be nice if we would.

https://github.com/aurae-runtime/aurae/blob/main/auraescript/macros/src/ops.rs#L60

@future-highway
Copy link
Contributor

Will probably need this: https://docs.rs/deno_core/0.170.0/deno_core/trait.Resource.html#

@seanwatters
Copy link
Contributor

seanwatters commented Feb 26, 2023

This may go against the goals of the project, and I may be missing a key advantage to having Rust be the glue for the gRPC interactions, but it may be worth looking at using a Deno compatible gRPC library for JavaScript, and then wrapping those in the predefined API functions.

It may also be useful for a developer who wants to utilize the "vanilla" gRPC interaction functions in JavaScript (maybe to access unstable features? or just want to for 🤷🏻‍♂️ ).

I've been using this library to write gRPC clients in Deno apps: https://github.com/bufbuild/protobuf-es

EDIT:

ES Protobuf doesn't generate service definitions at this time, so may not be the best choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants