Skip to content

Add gRPC-Web support for browser clients #23

Closed

Description

@jimeh

Add gRPC-Web as the next protocol milestone after native gRPC. Browser clients need its distinct wire format; native HTTP/2 gRPC support alone does not provide browser compatibility.

Plan before implementation

  • Settle binary and base64-text formats, protobuf/other codec scope, supported RPC shapes and the host/client capability matrix against the upstream protocol and real browser clients.
  • Define body-encoded trailers/status, incremental base64/framing, metadata, errors, independent byte bounds, cancellation and completion behavior.
  • Define CORS preflight/exposed headers and credential behavior explicitly. Preserve application authentication, CSRF and Rails lifecycle boundaries.
  • Reuse the core message and lifecycle machinery where appropriate without assuming native gRPC terminal HEADERS or HTTP/2 transport semantics apply unchanged.

Acceptance

  • A documented support matrix and protocol/error/resource contract precede implementation.
  • Independent generated gRPC-Web clients and meaningful browser integration prove every advertised mode and RPC shape, including cross-origin behavior.
  • Framing/status, bounds, cancellation, errors and lifecycle completion have focused regression evidence.
  • Native gRPC and existing Connect behavior, generated APIs, signatures and package isolation remain intact.

Upstream references: gRPC-Web protocol and official browser client.

This issue does not promise client-streaming/bidirectional browser support, all hosts, all codecs or all wire formats before the support matrix is settled. Native gRPC is the preceding implementation milestone; no release or publication work is included.


Written on behalf of jimeh by gpt-6.1-sol using Codex via T3 Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions