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 grpc-web #2

Closed
akshayjshah opened this issue Aug 3, 2021 · 1 comment · Fixed by #64
Closed

Support grpc-web #2

akshayjshah opened this issue Aug 3, 2021 · 1 comment · Fixed by #64
Labels
enhancement New feature or request

Comments

@akshayjshah
Copy link
Member

We should add server-side support for the grpc-web protocol. The protocol itself isn't too different from standard gRPC, and it'd be nice for reRPC servers to directly support web clients.

That said, I'm not sure how much traction grpc-web actually has (i.e., does anyone care about this?). I'm also unsure what our cross-testing options are - would we need to run a headless browser in the reRPC tests?

@akshayjshah akshayjshah added the enhancement New feature or request label Aug 3, 2021
@akshayjshah
Copy link
Member Author

One more caveat: the protocol document makes it pretty clear that the protocol follows the implementation, rather than the other way around. I can't tell how stable the protocol is, and whether we'll get ourselves into a bad semver situation by implementing it.

If we do implement it, I lean towards just putting it in and enabling it by default, like our current Twirp support. Unless there's some broader array of proto-over-HTTP dialects we see ourselves supporting in v1, a plugin system for this seems overly elaborate.

@akshayjshah akshayjshah self-assigned this Feb 2, 2022
akshayjshah added a commit that referenced this issue Feb 3, 2022
Make handlers support gRPC-Web by default, and let users configure
clients to use gRPC-Web with an option. This is such a small change from
standard gRPC that it's easier to make it a configurable toggle on the
gRPC protocol rather than a completely separate protocol.

Note that we don't support the application/grpc-web-text family of
protocols. They're only necessary for IE10, which even Microsoft doesn't
support anymore: any client using the fetch API should use the binary
protocol instead.

Fixes #2
akshayjshah added a commit that referenced this issue Feb 3, 2022
Make handlers support gRPC-Web by default, and let users configure
clients to use gRPC-Web with an option. This is such a small change from
standard gRPC that it's easier to make it a configurable toggle on the
gRPC protocol rather than a completely separate protocol.

Note that we don't support the application/grpc-web-text family of
protocols. They're only necessary for IE10, which even Microsoft doesn't
support anymore: any client using the fetch API should use the binary
protocol instead.

Fixes #2
akshayjshah added a commit that referenced this issue Feb 3, 2022
Make handlers support gRPC-Web by default, and let users configure
clients to use gRPC-Web with an option. This is such a small change from
standard gRPC that it's easier to make it a configurable toggle on the
gRPC protocol rather than a completely separate protocol.

Note that we don't support the application/grpc-web-text family of
protocols. They're only necessary for IE10, which even Microsoft doesn't
support anymore: any client using the fetch API should use the binary
protocol instead.

Fixes #2
akshayjshah added a commit that referenced this issue Feb 7, 2022
Make handlers support gRPC-Web by default, and let users configure
clients to use gRPC-Web with an option. This is such a small change from
standard gRPC that it's easier to make it a configurable toggle on the
gRPC protocol rather than a completely separate protocol.

Note that we don't support the application/grpc-web-text family of
protocols. They're only necessary for IE10, which even Microsoft doesn't
support anymore: any client using the fetch API should use the binary
protocol instead.

Fixes #2
akshayjshah added a commit that referenced this issue Feb 7, 2022
Make handlers support gRPC-Web by default, and let users configure
clients to use gRPC-Web with an option. This is such a small change from
standard gRPC that it's easier to make it a configurable toggle on the
gRPC protocol rather than a completely separate protocol.

Note that we don't support the application/grpc-web-text family of
protocols. They're only necessary for IE10, which even Microsoft doesn't
support anymore: any client using the fetch API should use the binary
protocol instead.

Fixes #2
akshayjshah added a commit that referenced this issue Feb 26, 2022
Make handlers support gRPC-Web by default, and let users configure
clients to use gRPC-Web with an option. This is such a small change from
standard gRPC that it's easier to make it a configurable toggle on the
gRPC protocol rather than a completely separate protocol.

Note that we don't support the application/grpc-web-text family of
protocols. They're only necessary for IE10, which even Microsoft doesn't
support anymore: any client using the fetch API should use the binary
protocol instead.

Fixes #2
akshayjshah added a commit that referenced this issue Feb 28, 2022
Make handlers support gRPC-Web by default, and let users configure
clients to use gRPC-Web with an option. This is such a small change from
standard gRPC that it's easier to make it a configurable toggle on the
gRPC protocol rather than a completely separate protocol.

Note that we don't support the application/grpc-web-text family of
protocols. They're only necessary for IE10, which even Microsoft doesn't
support anymore: any client using the fetch API should use the binary
protocol instead.

Fixes #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant