square / square/wire

Kotlin/JS support for GrpcClient

Open
#2,666 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
4.4k
Forks
627
Avg merge
3d 15m
Merged PRs (30d)
20

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing com.squareup.wire.GrpcClient implementations and the Kotlin/JS source set. Read the linked gRPC-Web protocol and compare it with the linked gist to determine the supported transport behavior. Done means Kotlin/JS has a GrpcClient implementation that can speak gRPC-Web despite browser streaming limitations.

Written by the indexing model from the issue text.

Assessment

Tech stack
grpc, kotlin
Domain
api, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.