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

Kotlin/JS support for GrpcClient #2666

Open
tianyu opened this issue Oct 6, 2023 · 1 comment
Open

Kotlin/JS support for GrpcClient #2666

tianyu opened this issue Oct 6, 2023 · 1 comment

Comments

@tianyu
Copy link

tianyu commented Oct 6, 2023

Currently, there is no implementation of com.squareup.wire.GrpcClient for Kotlin/JS, which is a shame because everything else works.

It's difficult for JS to speak gRPC natively since web browser APIs don't support bidirectional streaming. But maybe we can include an implementation of GrpcClient that speaks gRPC WEB.

Here's a gist of how that could work.

@oldergod
Copy link
Member

oldergod commented Oct 9, 2023

GrpcClient is an abstract class and you should be able to create your implementation of it for the JS platform.

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

2 participants