-
Notifications
You must be signed in to change notification settings - Fork 73
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
Browser support? #100
Comments
Thanks for the kind words :) I'd be happy to accept any PRs for this. This hasn't been a super high priority for me, but I recognize that being able to communicate directly with etcd may be very useful for e.g. browser-based management interfaces. I'll look into it, but no promises. For others, please 👍 this issue if it's something you'd like to see prioritized. |
Any updates about this? |
Might be relevant: #123 |
I looked into this a bit more this weekend, and documenting here half for myself when I pick this up again. The snag I hit is around how protobuf objects are managed. Currently we use grpc-loader, which reads from a file and creates objects using protobuf, but this is for grpc-js. We can generate web protobuf code via
and for grpc-js, use their wrapper
which would effectively give us nice protoc-generated code for both grpc-js and grpc-web. This also lets us drop some runtime dependencies. The difficulty is that the JS objects generated by protoc are not very idiomatic -- they are classes, on which you must call things like |
This doesn't work in browser currently. Are there any plans for adding browser support?
As I see it, the main problem is the grpc dependency, since it relies on the C++ addon.
But Grpc is supposed to work fine in the browser too:
https://grpc.io/docs/tutorials/basic/web/
So can we expect browser support to be added anytime soon?
Btw: great job with the lib! :) Nice API!
The text was updated successfully, but these errors were encountered: