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

Implement Client Streaming and BiDi Streaming for grpc-web #82

Merged

Conversation

jonnyreeves
Copy link
Contributor

@jonnyreeves jonnyreeves commented May 29, 2018

Fixes #66

This PR provides support for both Client Streaming and BiDirectional Streaming to the generated service stubs.

As an additional drive-by, I've also provided support for debugging the tests using a connected Chrome Inspector/Debugger.

# Conflicts:
#	examples/generated/examplecom/simple_service_pb_service.d.ts
#	examples/generated/proto/examplecom/simple_service_pb.d.ts
#	examples/generated/proto/examplecom/simple_service_pb.js
#	examples/generated/proto/examplecom/simple_service_pb_service.js
#	package.json
#	proto/examplecom/simple_service.proto
#	test/integration/service/grpcweb.ts
@stale
Copy link

stale bot commented Aug 31, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Aug 31, 2018
@stale stale bot removed the wontfix label Aug 31, 2018
@jonny-improbable jonny-improbable changed the title [WIP] Implement Client Streaming and BiDi Streaming for grpc-web Implement Client Streaming and BiDi Streaming for grpc-web Aug 31, 2018
@jonny-improbable
Copy link
Contributor

@pjm17971 if could have some time to review that would be awesome, thanks!

Copy link

@pjm17971 pjm17971 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know all the context of this code, but it looks good to me!

Copy link
Contributor

@easyCZ easyCZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

test/helpers/fakeGrpcTransport.ts Show resolved Hide resolved
@jonnyreeves jonnyreeves merged commit 5959599 into improbable-eng:master Sep 6, 2018
@jonnyreeves
Copy link
Contributor Author

@pjm17971 If you can, could you please try upgrading to 0.7.7-pre.5959599 of ts-protoc-gen and give some feedback on how you get on?

@jonnyreeves jonnyreeves deleted the feature/75-client-streams branch September 6, 2018 13:47
coltonmorris pushed a commit to coltonmorris/ts-protoc-gen that referenced this pull request Oct 17, 2018
* upstream/master:
  Transport member of ServiceClientOptions should be optional (improbable-eng#125)
  Allow canceling unary calls (improbable-eng#124)
  CI should check that generated code has been committed (improbable-eng#127)
  Bumped to v0.7.8-pre (improbable-eng#123)
  Prepare 0.7.7 release (improbable-eng#112)
  Clean up Bazel Installation during Travis Build (improbable-eng#122)
  Don't deploy .deb files to npm (improbable-eng#121)
  Fix snake_cased oneof message are generated to incorrect types (improbable-eng#118)
  Make ServiceError optionally null (improbable-eng#116)
  Be explicit about the need for a CommonJS environment. (improbable-eng#108)
  Replace usage of `Object.assign` (improbable-eng#110)
  Add hint for Windows users (improbable-eng#107)
  Collapse Bazel Instructions in README (improbable-eng#106)
  Implement Client Streaming and BiDi Streaming for grpc-web (improbable-eng#82)
  Add support for jstype annotation (improbable-eng#104)
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

Successfully merging this pull request may close these issues.

4 participants