fullstorydev / grpcui

An interactive web UI for gRPC, along the lines of postman
MIT License
5.15k stars 383 forks source link

How can I wait for stream answers? #263

Open hablof opened 1 year ago

hablof commented 1 year ago

I was trying to test my app, which receives and sends messages in async manner.

So I create request form image

After I press Invoke button app receives 1 message successfully and after that connection closes immediately (app receives io.EOF), so app has no time to send answers.

Is it possible to setup delay before close connection?

dragonsinth commented 1 year ago

From what I can tell, the Request Timeout controls how long the browser will wait for answers. So basically you just give it a particular time, like 20 seconds. The XHR will hang for that amount of time, and when it's done, it will show you whatever the server sent during that time. It'd be kinda nicer if it somehow flipped over to the response tab and rendered blocks of data as they came in.