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

How can I wait for stream answers? #263

Open
hablof opened this issue Aug 19, 2023 · 1 comment
Open

How can I wait for stream answers? #263

hablof opened this issue Aug 19, 2023 · 1 comment

Comments

@hablof
Copy link

hablof commented Aug 19, 2023

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
Copy link
Member

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.

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

No branches or pull requests

2 participants