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 in pure dart #287

Merged
merged 17 commits into from May 12, 2020
Merged

Support grpc-web in pure dart #287

merged 17 commits into from May 12, 2020

Conversation

robsonmeemo
Copy link
Contributor

@robsonmeemo robsonmeemo commented Mar 24, 2020

Fixes #216

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 24, 2020

CLA Check
The committers are authorized under a signed CLA.

@robsonmeemo
Copy link
Contributor Author

Is there interest in this PR?

@sigurdm
Copy link
Contributor

sigurdm commented Apr 27, 2020

Yes, this as awesome!

We need to fix the test.

@robsonmeemo
Copy link
Contributor Author

Cool, I wanted to know if there was interest before rewriting the tests. It's done but your Windows tests are failing because of misconfiguration.

FYI, we've been using this branch on a real-world app since March 24th.

@sigurdm
Copy link
Contributor

sigurdm commented Apr 28, 2020

The windows bots seems to work after a reboot.

@nichite are you fine with merging this?

@robsonmeemo
Copy link
Contributor Author

Ping? I'd love to not keep maintaining a fork.

@galen211
Copy link

galen211 commented May 7, 2020

This would be useful for a project I'm working on too: Related

@@ -69,8 +71,8 @@ StreamTransformer<GrpcMessage, GrpcMessage> grpcDecompressor() =>
handleData: (GrpcMessage value, EventSink<GrpcMessage> sink) {
if (value is GrpcData) {
if (value.isCompressed) {
// TODO(dart-lang/grpc-dart#6): Actually handle decompression.
sink.add(GrpcData(value.data, isCompressed: false));
final decompressedData = GZipDecoder().decodeBytes(value.data);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we take the decompression part out of this PR?

Even though this is awesome I am reluctant to take a dependency on package:archive.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@gustav3d
Copy link

gustav3d commented Jun 8, 2020

@robsonmeemo , Do you have any idea what part of your PR that broke server side streaming ?.

@JohnGalt1717
Copy link

It would be very nice if this package was conditional and would just work in flutter so that code was transparent between web and everything else.

isaldana added a commit to isaldana/grpc-dart that referenced this pull request Jul 24, 2020
isaldana added a commit to isaldana/grpc-dart that referenced this pull request Jul 24, 2020
mraleph added a commit to mraleph/grpc-dart that referenced this pull request Sep 17, 2020
This reverts commit c513e14.

The original commit has broken streaming due to limitations of package:http.
mraleph added a commit to mraleph/grpc-dart that referenced this pull request Sep 17, 2020
This reverts commit c513e14.

The original commit has broken streaming due to limitations of package:http.
nichite pushed a commit that referenced this pull request Sep 17, 2020
This reverts commit c513e14.

The original commit has broken streaming due to limitations of package:http.
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.

Enable grpc-web without dart:html
5 participants