Closed jasonclg closed 2 years ago
Hi!
Curious if you're using mode=grpcwebtext
or mode=grpcweb
? Streaming is only supported for the former so if you use the latter it may seems like that response is buffered.
I'm using grpcwebtext mode. Besides helloworld, I tested Echo too. Response is also buffered.
Ahh. then it's not expected.. streaming response should arrive as they're sent.
Maybe you could share more details about your configurations and check chrome network tabs to see what's the behavior as perceived on the browser side.
My network tab on testing Echo Two requests were sent when I typed "4 hello".
Ah ok that's a bit weird..
I tried locally with the echo example and streaming works and here's what i saw in my chrome tab:
The difference is that there's minimal "Waiting" in my case..
Not quite sure what the difference is..
@sampajano really appreciate your time on this! Closing this issue as I found the firewall/antivirus were the cause.
Oh i see! Thanks so much for letting us know that firewall/antivirus was the cause! I had that initial hunch too but forgot to mention it.. 😃 Glad it works now :)
I'm curious if the buffering behavior of server is expected? doSayRepeatHello waits and sends back 5 messages at once right after call.end() was executed (buffering). What I expected was each message being written to stream and sent back immediately at 500ms interval but it's apparently not the case.
BTW, is it possible to send back messages without executing call.end()?