-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support grpc-web client straming (#617)
* grpc-web-go-server test use go module * grpc-web: fix undefine message * try websocket * fix websocket * merge rpcOptions and metadata * use rxjs * generate grpc-web client streaming * update grpc-web generate code * update test * fix: grpc-web methodDesc * feat: only client-stream example * Run prettier. Co-authored-by: Stephen Haberman <stephen.haberman@gmail.com>
- Loading branch information
Showing
28 changed files
with
3,765 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
grpc-web-go-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
export GOPATH=$HOME/go | ||
|
||
# See https://grpc.io/docs/languages/go/quickstart/ | ||
# go get google.golang.org/protobuf/cmd/protoc-gen-go | ||
# go get google.golang.org/grpc/cmd/protoc-gen-go-grpc | ||
# | ||
# go get github.com/improbable-eng/grpc-web/go/grpcweb | ||
GO111MODULE=on go mod tidy | ||
|
||
go build | ||
|
||
mkdir -p generated | ||
protoc -I=. --go_out=generated/ --go-grpc_out=require_unimplemented_servers=false:generated/ example.proto | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 49 additions & 39 deletions
88
integration/grpc-web-go-server/generated/lib/rpx/example.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.