-
Notifications
You must be signed in to change notification settings - Fork 764
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
No events when using server-side streaming RPC with React Native (with mode=grpcweb
)
#1345
Comments
Just so you know, it works if I use I will stick with text for now so. |
mode=grpcweb
)
Hi thanks for the report! Actually, i think what you've observed is expected — streaming is currently only supported with I'm sorry for the inconvenience but for now you need to use I'm closing this issue but feel free to reopen or follow up with more details if needed. Thanks! |
We are facing similar issue with our React Native for Windows project #1468 |
Hello,
I am using grpc-web with React Native for my client and ASP.NET + Grpc.AspNetCore.Web package for my server.
So far unary calls work wonderfuly, yet when I try to use server-side streaming RPC, I receive no events.
If the server ends the connection, every events from the begining of the connection are raised all at once.
It feels like events are not flushed as soon as possible or something.
My problem seems not to come from the server as it works if I am using grpc-web from a C# client (source: https://learn.microsoft.com/en-us/aspnet/core/grpc/grpcweb?view=aspnetcore-7.0#configure-grpc-web-with-the-net-grpc-client).
My code exactly:
ChatClient is generated using:
protoc -I=Chat/ --js_out=import_style=commonjs,binary:webclient/Chat/src/APIClient --grpc-web_out=import_style=typescript,mode=grpcweb:webclient/Chat/src/APIClient Chat/*.proto
Is there something I am missing?
The text was updated successfully, but these errors were encountered: